Vega Strike  0.8.x
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
Unit Class Reference

unit.h More...

#include <unit.h>

Inheritance diagram for Unit:
Inheritance graph
[legend]
Collaboration diagram for Unit:
Collaboration graph
[legend]

Classes

struct  XML
 

Public Types

enum  Names {
  UNKNOWN, UNIT, SCALE, MESHFILE,
  XFILE
}
 
enum  Damages {
  NO_DAMAGE = 0x0, SHIELD_DAMAGED = 0x1, COMPUTER_DAMAGED = 0x2, MOUNT_DAMAGED = 0x4,
  CARGOFUEL_DAMAGED = 0x8, JUMP_DAMAGED = 0x10, CLOAK_DAMAGED = 0x20, LIMITS_DAMAGED = 0x40,
  ARMOR_DAMAGED = 0x80
}
 
enum  schedulepriorityenum { scheduleDefault, scheduleAField, scheduleRoid }
 
enum  INVIS { DEFAULTVIS = 0x0, INVISGLOW = 0x1, INVISUNIT = 0x2, INVISCAMERA = 0x4 }
 
enum  COLLIDELOCATIONTYPES { UNIT_ONLY = 0, UNIT_BOLT = 1, NUM_COLLIDE_MAPS = 2 }
 
enum  tractorHow { tractorImmune = 0, tractorPush = 1, tractorIn = 2, tractorBoth = 3 }
 
enum  DOCKENUM { NOT_DOCKED = 0x0, DOCKED_INSIDE = 0x1, DOCKED = 0x2, DOCKING_UNITS = 0x4 }
 

Public Member Functions

 Unit (bool kill)
 
void Kill ()
 
bool Killed ()
 
void Ref ()
 
void UnRef ()
 
 Unit (const Unit &)=delete
 
Unitoperator= (const Unit &)=delete
 
 Unit ()
 
 ~Unit () override
 
 Unit (int dummy)
 Default constructor. More...
 
 Unit (std::vector< Mesh *> &meshes, bool Subunit, int faction)
 Constructor that creates aa mesh with meshes as submeshes (number of them) as either as subunit with faction faction. More...
 
 Unit (const char *filename, bool SubUnit, int faction, std::string customizedUnit=std::string(""), Flightgroup *flightgroup=NULL, int fg_subnumber=0)
 Constructor that creates a mesh from an XML file If it is a customizedUnit, it will check in that directory in the home dir for the unit. More...
 
void Init ()
 
void Init (const char *filename, bool SubUnit, int faction, std::string customizedUnit=std::string(""), Flightgroup *flightgroup=NULL, int fg_subnumber=0)
 
void LoadRow (class CSVRow &row, std::string unitMod, bool saved_game)
 
bool UpgradeSubUnitsWithFactory (const Unit *up, int subunitoffset, bool touchme, bool downgrade, int &numave, double &percentage, Unit *(*createupgradesubunit)(std::string s, int faction))
 
bool UpgradeSubUnits (const Unit *up, int subunitoffset, bool touchme, bool downgrade, int &numave, double &percentage)
 
bool UpgradeMounts (const Unit *up, int subunitoffset, bool touchme, bool downgrade, int &numave, const Unit *templ, double &percentage)
 
bool hasSubUnits () const
 Contains information about a particular Mount on a unit. More...
 
un_iter getSubUnits ()
 
un_kiter viewSubUnits () const
 
bool isSubUnit () const
 
void setFaceCamera ()
 
bool UpAndDownGrade (const Unit *up, const Unit *templ, int mountoffset, int subunitoffset, bool touchme, bool downgrade, int additive, bool forcetransaction, double &percentage, const Unit *downgrade_min, bool force_change_on_nothing, bool gen_downgrade_list)
 
void ImportPartList (const std::string &category, float price, float pricedev, float quantity, float quantdev)
 
void ClearMounts ()
 
virtual void UpgradeInterface (Unit *base)
 
bool canUpgrade (const Unit *upgrador, int mountoffset, int subunitoffset, int additive, bool force, double &percentage, const Unit *templ=NULL, bool force_change_on_nothing=false, bool gen_downgrade_list=true)
 
bool Upgrade (const Unit *upgrador, int mountoffset, int subunitoffset, int additive, bool force, double &percentage, const Unit *templ=NULL, bool force_change_on_nothing=false, bool gen_downgrade_list=true)
 
int RepairCost ()
 
int RepairUpgrade ()
 
bool RepairUpgradeCargo (Cargo *item, Unit *baseUnit, float *credits)
 
Vector MountPercentOperational (int whichmount)
 
bool ReduceToTemplate ()
 
double Upgrade (const std::string &file, int mountoffset, int subunitoffset, bool force, bool loop_through_mounts)
 
bool canDowngrade (const Unit *downgradeor, int mountoffset, int subunitoffset, double &percentage, const Unit *downgradelimit, bool gen_downgrade_list=true)
 
bool Downgrade (const Unit *downgradeor, int mountoffset, int subunitoffset, double &percentage, const Unit *downgradelimit, bool gen_downgrade_list=true)
 
unsigned char getAttackPreferenceChar ()
 
unsigned char getUnitRoleChar ()
 
unsigned char getAttackPreferenceChar () const
 
unsigned char getUnitRoleChar () const
 
void setCombatRole (const std::string &s)
 
const std::string & getCombatRole () const
 
const std::string & getUnitRole () const
 
void setUnitRole (const std::string &s)
 
const std::string & getAttackPreference () const
 
void setAttackPreference (const std::string &s)
 
void DamageRandSys (float dam, const Vector &vec, float randum=1, float degrees=1)
 
void SetNebula (Nebula *)
 
NebulaGetNebula () const
 
const std::string & getCockpit () const
 
class CockpitGetVelocityDifficultyMult (float &) const
 
void RemoveFromSystem ()
 
void RequestPhysics ()
 
virtual void Split (int level)
 
virtual void addHalo (const char *filename, const Matrix &trans, const Vector &size, const GFXColor &col, std::string halo_type, float activation)
 
std::vector< Mesh * > StealMeshes ()
 
bool Explode (bool draw, float timeit)
 
std::string drawableGetName () override
 
virtual void applyTechniqueOverrides (const std::map< std::string, std::string > &overrides)
 
bool TransferUnitToSystem (unsigned int whichJumpQueue, StarSystem *&previouslyActiveStarSystem, bool DoSightAndSound) override
 
void SwitchCombatFlightMode ()
 
bool CombatMode ()
 
ComputerGetComputerData ()
 
const ComputerViewComputerData () const
 
void beginElement (const std::string &name, const XMLSupport::AttributeList &attributes)
 
void endElement (const std::string &name)
 
void WriteUnit (const char *modificationname="")
 
std::string WriteUnitString ()
 
void LoadXML (const char *filename, const char *unitModifications="", std::string *xmlbuffer=NULL)
 
void LoadXML (VSFileSystem::VSFile &f, const char *unitModifications="", std::string *xmlbuffer=NULL)
 
QVector realPosition () override
 
void UpdatePhysics2 (const Transformation &trans, const Transformation &old_physical_state, const Vector &accel, float difficulty, const Matrix &transmat, const Vector &CumulativeVelocity, bool ResolveLast, UnitCollection *uc=NULL) override
 Updates physics given unit space transformations and if this is the last physics frame in the current gfx frame. More...
 
void ActTurn ()
 
void UpdateCloak ()
 
void UpdatePhysics3 (const Transformation &trans, const Matrix &transmat, bool lastframe, UnitCollection *uc, Unit *superunit) override
 
bool isPlayerShip () override
 
Vector LocalCoordinates (const Unit *un) const
 
float CloakVisible () const
 
virtual void Cloak (bool cloak)
 
void Kill (bool eraseFromSave=true, bool quitting=false)
 
bool Killed () const
 
bool IsExploding () const
 
float ExplodingProgress () const
 
Vector ResolveForces (const Transformation &, const Matrix &) override
 Resolves forces of given unit on a physics frame. More...
 
float rSize () const
 
QVector Position () const
 
const MatrixGetTransformation () const
 
QVector LocalPosition () const
 
void SetCurPosition (const QVector &pos)
 Sets the cumulative transformation matrix's position...for setting up to be out in the middle of nowhere. More...
 
void SetPosAndCumPos (const QVector &pos)
 
void SetVisible (bool isvis)
 
void SetAllVisible (bool isvis)
 
void SetGlowVisible (bool isvis)
 
void FireEngines (const Vector &Direction, float FuelSpeed, float FMass)
 Fire engine takes a unit vector for direction and how fast the fuel speed and mass coming out are. More...
 
void ApplyForce (const Vector &Vforce)
 
void ApplyLocalForce (const Vector &Vforce)
 
void Accelerate (const Vector &Vforce)
 
void ApplyTorque (const Vector &Vforce, const QVector &Location)
 
void ApplyLocalTorque (const Vector &Vforce, const Vector &Location)
 
void ApplyBalancedLocalTorque (const Vector &Vforce, const Vector &Location)
 
void ApplyLocalTorque (const Vector &torque)
 
float ApplyLocalDamage (const Vector &pnt, const Vector &normal, Damage damage, Unit *affectedSubUnit, const GFXColor &)
 
void ApplyNetDamage (Vector &pnt, Vector &normal, float amt, float ppercentage, float spercentage, GFXColor &color)
 
Vector ClampThrust (const Vector &thrust, bool afterburn)
 
Vector MaxThrust (const Vector &thrust)
 
virtual void Thrust (const Vector &amt, bool afterburn=false)
 
void LateralThrust (float amt)
 
void VerticalThrust (float amt)
 
void LongitudinalThrust (float amt)
 
Vector ClampVelocity (const Vector &velocity, const bool afterburn)
 
Vector ClampAngVel (const Vector &vel)
 
Vector ClampTorque (const Vector &torque)
 
Vector MaxTorque (const Vector &torque)
 
void YawTorque (float amt)
 
void PitchTorque (float amt)
 
void RollTorque (float amt)
 
void Repair ()
 
virtual void UpdateSubunitPhysics (const Transformation &trans, const Matrix &transmat, const Vector &CumulativeVelocity, bool ResolveLast, UnitCollection *uc, Unit *superunit)
 
virtual void UpdateSubunitPhysics (Unit *subunit, const Transformation &trans, const Matrix &transmat, const Vector &CumulativeVelocity, bool ResolveLast, UnitCollection *uc, Unit *superunit)
 
bool InRange (const Unit *target, bool cone=true, bool cap=true) const
 
bool InRange (const Unit *target, double &mm, bool cone, bool cap, bool lock) const
 
UnitTarget ()
 
const UnitTarget () const
 
UnitVelocityReference ()
 
const UnitVelocityReference () const
 
UnitThreat ()
 
void VelocityReference (Unit *targ)
 
void TargetTurret (Unit *targ)
 
void Threaten (Unit *targ, float danger)
 
void ResetThreatLevel ()
 
float cosAngleTo (Unit *target, float &distance, float speed=0.001, float range=0.001, bool turnmargin=true) const
 
float cosAngleFromMountTo (Unit *target, float &distance) const
 
float computeLockingPercent ()
 
void Select ()
 
void Deselect ()
 
void Target (Unit *targ)
 
void setTargetFg (std::string primary, std::string secondary=std::string(), std::string tertiary=std::string())
 
void ReTargetFg (int which_target=0)
 
void SetCollisionParent (Unit *name)
 
void SetOwner (Unit *target)
 
void SetRecursiveOwner (Unit *target)
 
UnitrayCollide (const QVector &st, const QVector &end, Vector &normal, float &distance)
 
void calculate_extent (bool update_collide_queue)
 
bool Inside (const QVector &position, const float radius, Vector &normal, float &dist)
 
void UpdateCollideQueue (StarSystem *ss, CollideMap::iterator hint[NUM_COLLIDE_MAPS])
 
bool querySphere (const QVector &pnt, float err) const
 
float querySphere (const QVector &start, const QVector &end, float my_unit_radius=0) const
 
float querySphereNoRecurse (const QVector &start, const QVector &end, float my_unit_radius=0) const
 
float querySphereClickList (const QVector &st, const QVector &dir, float err) const
 
bool queryFrustum (double frustum[6][4]) const
 Updates the collide Queue with any possible change in sectors Queries if this unit is within a given frustum. More...
 
bool querySphereClickList (int, int, float err, Camera *activeCam) const
 Queries the bounding sphere with a duo of mouse coordinates that project to the center of a ship and compare with a sphere...pretty fast queries the sphere for weapons (world space point) Only in Unit class. More...
 
bool InsideCollideTree (Unit *smaller, QVector &bigpos, Vector &bigNormal, QVector &smallpos, Vector &smallNormal, bool bigasteroid=false, bool smallasteroid=false)
 
bool jumpReactToCollision (Unit *smaller)
 
bool Collide (Unit *target)
 
void CollideAll ()
 
int CanDockWithMe (Unit *dockingunit, bool forcedock=false)
 
int ForceDock (Unit *utdw, unsigned int whichdockport)
 
void PerformDockingOperations ()
 
void FreeDockingPort (unsigned int whichport)
 
const std::vector< struct DockingPorts > & DockingPortLocations () const
 
char DockedOrDocking () const
 
bool IsCleared (const Unit *dockignunit) const
 
bool isDocked (const Unit *dockingUnit) const
 
bool UnDock (Unit *unitToDockWith)
 
bool RequestClearance (Unit *dockingunit)
 returns -1 if unit cannot dock, otherwise returns which dock it can dock at More...
 
bool EndRequestClearance (Unit *dockingunit)
 
bool hasPendingClearanceRequests () const
 
int Dock (Unit *unitToDockWith)
 
void RestoreGodliness ()
 
void SetFg (Flightgroup *fg, int fg_snumber)
 
void SetFaction (int faction)
 
FlightgroupgetFlightgroup () const
 
int getFgSubnumber () const
 
const std::string getFgID ()
 
std::vector< class CargoColor > & FilterDowngradeList (std::vector< class CargoColor > &mylist, bool downgrade=true)
 
std::vector< class CargoColor > & FilterUpgradeList (std::vector< class CargoColor > &mylist)
 
bool IsBase () const
 
bool isTractorable (enum tractorHow how=tractorBoth) const
 
void setTractorability (enum tractorHow how)
 
enum tractorHow getTractorability () const
 
void setFullname (std::string name)
 
const string & getFullname () const
 
const string & getFilename () const
 
virtual enum Vega_UnitType isUnit () const
 
void Ref ()
 
void UnRef ()
 
UnitImages< void > & GetImageInformation ()
 
bool isStarShip () const
 
bool isPlanet () const
 
bool isJumppoint () const
 
void TurretFAW ()
 
void Fire (unsigned int bitmask, bool beams_target_owner=false)
 
void getAverageGunSpeed (float &speed, float &grange, float &mrange) const
 
int getNumMounts () const
 
int LockMissile () const
 
void LockTarget (bool myboo)
 
QVector PositionITTS (const QVector &firingposit, Vector firingvelocity, float gunspeed, bool smooth_itts) const
 
void SelectAllWeapon (bool Missile)
 
void setAverageGunSpeed ()
 
bool TargetLocked (const Unit *checktarget=nullptr) const
 
bool TargetTracked (const Unit *checktarget=nullptr)
 
void ToggleWeapon (bool Missile, bool forward=true)
 
float TrackingGuns (bool &missileLock)
 
void UnFire ()
 
void addDefaultSounds ()
 
void addSounds (std::string(*nextElement)(std::string &), std::string soundsString)
 
void addSound (std::string soundString, SoundType type)
 
void adjustSound (SoundType type)
 
void adjustSound (SoundType type, const QVector &position, const Vector &velocity)
 
void playSound (SoundType type)
 
void playShieldDamageSound (const Vector &pnt)
 
void playArmorDamageSound (const Vector &pnt)
 
void playHullDamageSound (const Vector &pnt)
 
bool DrawableInit (const char *filename, int faction, Flightgroup *flightgrp=NULL, const char *animationExt=NULL)
 
void AnimationStep ()
 
void clear ()
 
string getAnimationName (unsigned int animationNumber) const
 
unsigned int getAnimationNumber (const char *name) const
 
void ChangeAnimation (const char *name)
 
void ChangeAnimation (unsigned int AnimNumber)
 
void StartAnimation (unsigned int how_many_times=0, int numAnimation=0)
 
void StopAnimation ()
 
bool isAnimatedMesh () const
 
bool animationRuns () const
 
unsigned int numAnimations ()
 
bool isContinuousLoop () const
 
void addAnimation (std::vector< Mesh *> *meshes, const char *name)
 
double framesPerSecond () const
 
double timePerFrame () const
 
void ToggleAnimatedMesh (bool on)
 
void SetAniSpeed (float speed)
 
virtual void Draw (const Transformation &quat=identity_transformation, const Matrix &m=identity_matrix)
 
virtual void DrawNow (const Matrix &m=identity_matrix, float lod=1000000000)
 Draws this unit with the transformation and matrix (should be equiv) separately. More...
 
void Sparkle (bool on_screen, Matrix *ctm)
 Drawable::Sparkle caused damaged units to emit sparks. More...
 
void DrawHalo (bool on_screen, float apparent_size, Matrix wmat, int cloak)
 
void DrawSubunits (bool on_screen, Matrix wmat, int cloak, float average_scale, unsigned char char_damage)
 
unsigned int nummesh () const
 
void LightShields (const Vector &pnt, const Vector &normal, float amt, const GFXColor &color)
 
Matrix WarpMatrix (const Matrix &ctm) const
 Holds temporary values for inter-function XML communication Saves deprecated restr info. More...
 
void UpdateHudMatrix (int whichcam)
 Sets the camera to be within this unit. More...
 
VSSpritegetHudImage () const
 
const float GetHull () const
 
const float GetArmor (int facet=0) const
 
const float GetShield (int facet=0) const
 
DamageableLayerGetHullLayer ()
 
DamageableLayerGetArmorLayer ()
 
DamageableLayerGetShieldLayer ()
 
const float GetShieldRegeneration () const
 
virtual const float GetHullPercent () const
 
virtual const float GetShieldPercent () const
 
void ArmorData (float armor[8]) const
 
bool ShieldUp (const Vector &) const
 
float DealDamageToShield (const Vector &pnt, float &Damage)
 
float DealDamageToHull (const Vector &pnt, float Damage)
 
void ApplyDamage (const Vector &pnt, const Vector &normal, Damage damage, Unit *affected_unit, const GFXColor &color, void *ownerDoNotDereference)
 
void DamageRandomSystem (InflictedDamage inflicted_damage, bool player, Vector attack_vector)
 
void DamageCargo (InflictedDamage inflicted_damage)
 
void Destroy ()
 
float FShieldData () const
 
float RShieldData () const
 
float LShieldData () const
 
float BShieldData () const
 
void leach (float XshieldPercent, float YrechargePercent, float ZenergyPercent)
 
float MaxShieldVal () const
 
void RegenerateShields (const float difficulty, const bool player_ship)
 
bool flickerDamage ()
 
InflictedDamage DealDamage (const CoreVector &attack_vector, Damage &damage)
 
bool Destroyed ()
 
void decreaseWarpEnergy (bool insys, float time)
 
void DecreaseWarpEnergyInWarp ()
 
float energyData () const
 
float energyRechargeData () const
 
float fuelData () const
 
void WCWarpIsFuelHack (bool transfer_warp_to_fuel)
 Energetic::WCWarpIsFuelHack - in Wing Commander, warp and fuel are the same variable. More...
 
float ExpendMomentaryFuelUsage (float magnitude)
 
float ExpendFuel (float quantity)
 expendFuel - reduce fuel by burning it More...
 
void ExpendFuel ()
 
void ExpendEnergy (const bool player_ship)
 
void ExpendEnergy (float usage)
 
void ExpendEnergyToRechargeShields ()
 
float getWarpEnergy () const
 
void increaseWarpEnergy (bool insys, float time)
 
float maxEnergyData () const
 
void MaintainECM ()
 
void MaintainShields ()
 
void rechargeEnergy ()
 
void RechargeWarpCapacitors (const bool player_ship)
 
bool refillWarpEnergy ()
 
void setAfterburnerEnergy (float aft)
 
void setEnergyRecharge (float enrech)
 
void setFuel (float f)
 
float totalShieldEnergyCapacitance ()
 
float warpCapData () const
 
float warpEnergyData () const
 
float WarpEnergyMultiplier (const bool player_ship)
 
class csOPCODECollidergetCollideTree (const Vector &scale=Vector(1, 1, 1), std::vector< struct mesh_polygon > *=NULL)
 
OrdergetAIState () const
 
void PrimeOrders ()
 
void PrimeOrders (Order *newAI)
 
void PrimeOrdersLaunched ()
 
void SetAI (Order *newAI)
 
void EnqueueAI (Order *newAI)
 
void EnqueueAIFirst (Order *newAI)
 
void LoadAIScript (const std::string &aiscript)
 
bool LoadLastPythonAIScript ()
 
bool EnqueueLastPythonAIScript ()
 
double getMinDis (const QVector &pnt) const
 
void SetTurretAI ()
 
void DisableTurretAI ()
 
std::string getFullAIDescription ()
 
void eraseOrderType (unsigned int type)
 
void ExecuteAI ()
 
bool isEnemy (const Unit *other) const
 
bool isFriend (const Unit *other) const
 
bool isNeutral (const Unit *other) const
 
float getRelation (const Unit *other) const
 
float getMass ()
 
float getMass () const
 
void setMass (float mass)
 
void AddVelocity (float difficulty)
 
void SetPosition (const QVector &pos)
 
void SetOrientation (QVector q, QVector r)
 
void SetOrientation (Quaternion Q)
 
void SetOrientation (QVector p, QVector q, QVector r)
 
void GetOrientation (Vector &p, Vector &q, Vector &r) const
 
Vector GetNetAcceleration () const
 
Vector GetNetAngularAcceleration () const
 
Vector GetAcceleration () const
 
Vector GetAngularAcceleration () const
 
float GetMaxAccelerationInDirectionOf (const Vector &ref, bool afterburn) const
 
Vector UpCoordinateLevel (const Vector &v) const
 
Vector DownCoordinateLevel (const Vector &v) const
 
Vector ToLocalCoordinates (const Vector &v) const
 
Vector ToWorldCoordinates (const Vector &v) const
 
void UpdatePhysics (const Transformation &trans, const Matrix &transmat, const Vector &CumulativeVelocity, bool ResolveLast, UnitCollection *uc, Unit *superunit)
 
const VectorGetAngularVelocity () const
 
const VectorGetVelocity () const
 
void SetVelocity (const Vector &)
 
void SetAngularVelocity (const Vector &)
 
float GetMoment () const
 
float GetMass () const
 
void SetResolveForces (bool)
 
double GetMaxWarpFieldStrength (float rampmult=1.f) const
 
void DecreaseWarpEnergy (bool insystem, float time=1.0f)
 
void IncreaseWarpEnergy (bool insystem, float time=1.0f)
 
void Rotate (const Vector &axis)
 
void ActivateJumpDrive (int destination=0)
 
void AddDestination (const std::string &)
 
bool AutoPilotTo (Unit *un, bool automaticenergyrealloc)
 
bool AutoPilotToErrorMessage (const Unit *un, bool automaticenergyrealloc, std::string &failuremessage, int recursive_level=2)
 
float CalculateNearestWarpUnit (float minmultiplier, Unit **nearest_unit, bool count_negative_warp_units) const
 
float CourseDeviation (const Vector &OriginalCourse, const Vector &FinalCourse) const
 
void DeactivateJumpDrive ()
 
const std::vector< std::string > & GetDestinations () const
 
const Energetic::UnitJumpGetJumpStatus () const
 
StarSystemgetStarSystem ()
 
const StarSystemgetStarSystem () const
 
Vector GetWarpRefVelocity () const
 
Vector GetWarpVelocity () const
 
bool InCorrectStarSystem (StarSystem *)
 
virtual bool TransferUnitToSystem (StarSystem *NewSystem)
 
void SortCargo ()
 
bool CanAddCargo (const Cargo &carg) const
 
void AddCargo (const Cargo &carg, bool sort=true)
 
int RemoveCargo (unsigned int i, int quantity, bool eraseZero=true)
 
float PriceCargo (const std::string &s)
 
CargoGetCargo (unsigned int i)
 
const CargoGetCargo (unsigned int i) const
 
CargoGetCargo (const std::string &s, unsigned int &i)
 
const CargoGetCargo (const std::string &s, unsigned int &i) const
 
void GetSortedCargoCat (const std::string &category, size_t &catbegin, size_t &catend)
 
unsigned int numCargo () const
 
std::string GetManifest (unsigned int i, Unit *scanningUnit, const Vector &original_velocity) const
 
bool SellCargo (unsigned int i, int quantity, float &creds, Cargo &carg, Unit *buyer)
 
bool SellCargo (const std::string &s, int quantity, float &creds, Cargo &carg, Unit *buyer)
 
bool BuyCargo (const Cargo &carg, float &creds)
 
bool BuyCargo (unsigned int i, unsigned int quantity, Unit *buyer, float &creds)
 
bool BuyCargo (const std::string &cargo, unsigned int quantity, Unit *buyer, float &creds)
 
void EjectCargo (unsigned int index)
 
float getEmptyCargoVolume (void) const
 
float getCargoVolume (void) const
 
float getEmptyUpgradeVolume (void) const
 
float getUpgradeVolume (void) const
 
float getHiddenCargoVolume (void) const
 

Static Public Member Functions

static void ProcessDeleteQueue ()
 
static void beginElement (void *userData, const XML_Char *name, const XML_Char **atts)
 
static void endElement (void *userData, const XML_Char *name)
 
static void UpdateFrames ()
 
static float getFuelUsage (bool afterburner)
 
static float VSDPercent ()
 
static std::string cargoSerializer (const struct XMLType &input, void *mythis)
 
static UnitmakeMasterPartList ()
 

Public Attributes

const EnumMap::Pair element_names [3]
 
const EnumMap::Pair attribute_names [3]
 
const EnumMap element_map (element_names, 3)
 
const EnumMap attribute_map (attribute_names, 3)
 
bool killed
 
bool zapped
 
int ucref = 0
 
int ecm
 Radar and related systems. More...
 
unsigned char repair_droid
 Repair. More...
 
float next_repair_time
 
unsigned int next_repair_cargo
 
float fireControlFunctionality
 
float fireControlFunctionalityMax
 
float SPECDriveFunctionality
 
float SPECDriveFunctionalityMax
 
float CommFunctionality
 
float CommFunctionalityMax
 
float LifeSupportFunctionality
 
float LifeSupportFunctionalityMax
 
float UpgradeVolume = 0
 Volume. More...
 
float CargoVolume = 0
 
float equipment_volume
 mass just makes you turn worse More...
 
float HiddenCargoVolume = 0
 
StringPool::Reference name
 
StringPool::Reference filename
 
unsigned int damages = Damages::NO_DAMAGE
 
UnitCollection SubUnits
 
bool inertialmode = false
 
bool autopilotactive = false
 
Nebulanebula = nullptr
 
Computer computer
 
Pilotpilot
 
bool selected = false
 
XMLxml = nullptr
 
void * owner = nullptr
 
bool do_subunit_scheduling = false
 
enum Unit::schedulepriorityenum schedule_priority = scheduleDefault
 
UnitImages< void > * pImage = nullptr
 
float specInterdiction = 0
 
float HeatSink = 0
 
float shieldtight = configuration()->physics_config.default_shield_tightness
 
float cloakenergy = 0
 How much energy cloaking takes per frame. More...
 
int cloakrate = 100
 how fast this starship decloaks/close...if negative, decloaking More...
 
bool cloakglass = false
 If this unit cloaks like glass or like fading. More...
 
int cloaking = -1
 
int cloakmin = cloakglass ? 1 : 0
 
bool forcejump = false
 if the unit is a wormhole More...
 
unsigned char invisible = DEFAULTVIS
 
StringPool::Reference target_fgid [3]
 
CollideMap::iterator location [2] = {nullptr, nullptr}
 
struct collideTreescolTrees = nullptr
 
Flightgroupflightgroup = nullptr
 
int flightgroup_subnumber = 0
 
int faction = 0
 
float temporary_upgrade_float_variable
 
std::vector< Mountmounts
 
float gunspeed
 
float gunrange
 
float missilerange
 
char turretstatus
 
std::vector< Mesh * > meshdata
 
std::unique_ptr< HaloSystemhalos
 
double curtime
 
DamageableLayerhull
 
DamageableLayerarmor
 
DamageableLayershield
 
floatcurrent_hull
 
floatmax_hull
 
float upgrade_hull
 
float shield_regeneration
 
int number_of_layers
 
std::vector< DamageableLayerlayers
 
std::vector< DamageableObjectcomponents
 
void(* explosion )(DamageableObject object)
 
void *(* residual_debris )(DamageableObject object)
 
struct Energetic::UnitJump jump
 
Resource< floatenergy
 
float recharge
 
float maxwarpenergy
 
float warpenergy
 
float constrained_charge_to_shields
 
bool sufficient_energy_to_recharge_shields
 
Orderaistate = nullptr
 
float Mass
 
Limits limits
 
Vector cumulative_velocity
 
Vector NetForce
 
Vector NetLocalForce
 
Vector NetTorque
 
Vector NetLocalTorque
 
Vector AngularVelocity
 
Vector Velocity
 
Transformation prev_physical_state
 
Transformation curr_physical_state
 
bool resolveforces
 
unsigned int sim_atom_multiplier
 
unsigned int predicted_priority
 
unsigned int cur_sim_queue_slot
 
unsigned int last_processed_sqs
 
unsigned char docked
 
Matrix cumulative_transformation_matrix
 
Transformation cumulative_transformation
 
Vector corner_min
 
Vector corner_max
 
float radial_size
 
class Movable::graphic_options graphicOptions
 
StarSystemactiveStarSystem
 
std::vector< Cargocargo
 

Static Public Attributes

static unsigned int unitCount = 0
 
static std::map< string, Unit * > Units
 

Protected Member Functions

virtual float ExplosionRadius ()
 
void ActivateGuns (const WeaponInfo *, bool Missile)
 cycles through the loop twice turning on all matching to ms weapons of size or after size More...
 
void playExplosionDamageSound ()
 
void playEngineSound ()
 
void killSounds ()
 

Static Protected Member Functions

static std::string massSerializer (const struct XMLType &input, void *mythis)
 
static std::string mountSerializer (const struct XMLType &input, void *mythis)
 
static std::string subunitSerializer (const struct XMLType &input, void *mythis)
 

Protected Attributes

StringPool::Reference csvRow
 
std::string fullname
 
vector< vector< Mesh * > * > vecAnimations
 
vector< string > vecAnimationNames
 
bool animatedMesh
 
unsigned int activeAnimation
 
double timeperframe
 
bool done
 
unsigned int activeMesh
 
unsigned int nextactiveMesh
 
bool infiniteLoop
 
unsigned int loopCount
 
string uniqueUnitName
 
float fuel
 
float afterburnenergy
 
int afterburntype
 
float Momentofinertia
 
Vector SavedAccel
 
Vector SavedAngAccel
 
float cutsqr {0.0F}
 
float outcutsqr {0.0F}
 
float air_res_coef {0.0F}
 
float lateral_air_res_coef {0.0F}
 

Private Member Functions

void RechargeEnergy ()
 

Private Attributes

unsigned char attack_preference = ROLES::getRole("INERT")
 
unsigned char unit_role = ROLES::getRole("INERT")
 
unsigned char tractorability_flags = tractorImmune
 

Friends

class Mount
 
class PlanetaryOrbit
 
class ContinuousTerrain
 
class VDU
 
class UpgradingInfo
 

Detailed Description

unit.h

Unit contains any physical object that may collide with something And may be physically affected by forces.

Copyright (c) 2001-2002 Daniel Horn Copyright (c) 2002-2019 pyramid3d and other Vega Strike Contributors Copyright (c) 2019-2021 Stephen G. Tuggy, and other Vega Strike Contributors Copyright (C) 2022 Stephen G. Tuggy

https://github.com/vegastrike/Vega-Strike-Engine-Source

This file is part of Vega Strike.

Vega Strike is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

Vega Strike is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Vega Strike. If not, see https://www.gnu.org/licenses/.

Units are assumed to have various damage and explode when they are dead. Units may have any number of weapons which, themselves may be units the aistate indicates how the unit will behave in the upcoming phys frame

Definition at line 32 of file unit.h.

Member Enumeration Documentation

◆ COLLIDELOCATIONTYPES

Enumerator
UNIT_ONLY 
UNIT_BOLT 
NUM_COLLIDE_MAPS 

Definition at line 834 of file unit_generic.h.

◆ Damages

Enumerator
NO_DAMAGE 
SHIELD_DAMAGED 
COMPUTER_DAMAGED 
MOUNT_DAMAGED 
CARGOFUEL_DAMAGED 
JUMP_DAMAGED 
CLOAK_DAMAGED 
LIMITS_DAMAGED 
ARMOR_DAMAGED 

Definition at line 226 of file unit_generic.h.

◆ DOCKENUM

enum Movable::DOCKENUM
inherited
Enumerator
NOT_DOCKED 
DOCKED_INSIDE 
DOCKED 
DOCKING_UNITS 

Definition at line 81 of file movable.h.

◆ INVIS

Enumerator
DEFAULTVIS 
INVISGLOW 
INVISUNIT 
INVISCAMERA 

Definition at line 598 of file unit_generic.h.

◆ Names

Enumerator
UNKNOWN 
UNIT 
SCALE 
MESHFILE 
XFILE 

Definition at line 227 of file objconv/MeshParse/mesh_xml.cpp.

◆ schedulepriorityenum

Enumerator
scheduleDefault 
scheduleAField 
scheduleRoid 

Definition at line 562 of file unit_generic.h.

◆ tractorHow

Enumerator
tractorImmune 
tractorPush 
tractorIn 
tractorBoth 

Definition at line 972 of file unit_generic.h.

Constructor & Destructor Documentation

◆ Unit() [1/6]

Unit::Unit ( bool  kill)
inline

Definition at line 38 of file unit.h.

◆ Unit() [2/6]

Unit::Unit ( const Unit )
delete

◆ Unit() [3/6]

Unit::Unit ( )

Definition at line 282 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Unit()

Unit::~Unit ( )
override

Definition at line 326 of file unit_generic.cpp.

◆ Unit() [4/6]

Unit::Unit ( int  dummy)

Default constructor.

This is just to figure out where default constructors are used. The useless argument will be removed again later.

Definition at line 274 of file unit_generic.cpp.

Here is the call graph for this function:

◆ Unit() [5/6]

Unit::Unit ( std::vector< Mesh *> &  meshes,
bool  Subunit,
int  faction 
)

Constructor that creates aa mesh with meshes as submeshes (number of them) as either as subunit with faction faction.

Definition at line 291 of file unit_generic.cpp.

Here is the call graph for this function:

◆ Unit() [6/6]

Unit::Unit ( const char *  filename,
bool  SubUnit,
int  faction,
std::string  customizedUnit = std::string(            ""),
Flightgroup flightgroup = NULL,
int  fg_subnumber = 0 
)

Constructor that creates a mesh from an XML file If it is a customizedUnit, it will check in that directory in the home dir for the unit.

Definition at line 311 of file unit_generic.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Accelerate()

void Unit::Accelerate ( const Vector Vforce)

Definition at line 1122 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ ActivateGuns()

void Armed::ActivateGuns ( const WeaponInfo sz,
bool  Missile 
)
protectedinherited

cycles through the loop twice turning on all matching to ms weapons of size or after size

Definition at line 184 of file armed.cpp.

◆ ActivateJumpDrive()

void JumpCapable::ActivateJumpDrive ( int  destination = 0)
inherited

Definition at line 103 of file jump_capable.cpp.

Here is the caller graph for this function:

◆ ActTurn()

void Unit::ActTurn ( )

Definition at line 4894 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addAnimation()

void Drawable::addAnimation ( std::vector< Mesh *> *  meshes,
const char *  name 
)
inherited

Definition at line 526 of file drawable.cpp.

Here is the caller graph for this function:

◆ AddCargo()

void Carrier::AddCargo ( const Cargo carg,
bool  sort = true 
)
inherited

Definition at line 478 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addDefaultSounds()

void Audible::addDefaultSounds ( )
inherited

Definition at line 53 of file audible.cpp.

Here is the call graph for this function:

◆ AddDestination()

void JumpCapable::AddDestination ( const std::string &  dest)
inherited

Definition at line 110 of file jump_capable.cpp.

Here is the caller graph for this function:

◆ addHalo()

void Unit::addHalo ( const char *  filename,
const Matrix trans,
const Vector size,
const GFXColor col,
std::string  halo_type,
float  activation 
)
virtual

Definition at line 5418 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addSound()

void Audible::addSound ( std::string  soundString,
SoundType  type 
)
inherited

Definition at line 80 of file audible.cpp.

Here is the call graph for this function:

◆ addSounds()

void Audible::addSounds ( std::string(*)(std::string &)  nextElement,
std::string  soundsString 
)
inherited

Definition at line 61 of file audible.cpp.

Here is the call graph for this function:

◆ AddVelocity()

void Movable::AddVelocity ( float  difficulty)
inherited

Definition at line 177 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjustSound() [1/2]

void Audible::adjustSound ( SoundType  type)
inherited

Definition at line 84 of file audible.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjustSound() [2/2]

void Audible::adjustSound ( SoundType  type,
const QVector position,
const Vector velocity 
)
inherited

Definition at line 89 of file audible.cpp.

Here is the call graph for this function:

◆ animationRuns()

bool Drawable::animationRuns ( ) const
inherited

Definition at line 617 of file drawable.cpp.

Here is the caller graph for this function:

◆ AnimationStep()

void Drawable::AnimationStep ( )
inherited

Definition at line 355 of file drawable.cpp.

Here is the call graph for this function:

◆ ApplyBalancedLocalTorque()

void Unit::ApplyBalancedLocalTorque ( const Vector Vforce,
const Vector Location 
)

Definition at line 1142 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ ApplyDamage()

void Damageable::ApplyDamage ( const Vector pnt,
const Vector normal,
Damage  damage,
Unit affected_unit,
const GFXColor color,
void *  ownerDoNotDereference 
)
inherited

Definition at line 95 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ApplyForce()

void Unit::ApplyForce ( const Vector Vforce)

Definition at line 1105 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ ApplyLocalDamage()

float Unit::ApplyLocalDamage ( const Vector pnt,
const Vector normal,
Damage  damage,
Unit affectedSubUnit,
const GFXColor  
)
Here is the caller graph for this function:

◆ ApplyLocalForce()

void Unit::ApplyLocalForce ( const Vector Vforce)

Definition at line 1114 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ ApplyLocalTorque() [1/2]

void Unit::ApplyLocalTorque ( const Vector Vforce,
const Vector Location 
)

Definition at line 1136 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ ApplyLocalTorque() [2/2]

void Unit::ApplyLocalTorque ( const Vector torque)

Definition at line 1146 of file unit_generic.cpp.

Here is the call graph for this function:

◆ ApplyNetDamage()

void Unit::ApplyNetDamage ( Vector pnt,
Vector normal,
float  amt,
float  ppercentage,
float  spercentage,
GFXColor color 
)
Here is the caller graph for this function:

◆ applyTechniqueOverrides()

void Unit::applyTechniqueOverrides ( const std::map< std::string, std::string > &  overrides)
virtual

Definition at line 4753 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ApplyTorque()

void Unit::ApplyTorque ( const Vector Vforce,
const QVector Location 
)

Definition at line 1130 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ ArmorData()

void Damageable::ArmorData ( float  armor[8]) const
inherited

Definition at line 524 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AutoPilotTo()

bool JumpCapable::AutoPilotTo ( Unit un,
bool  automaticenergyrealloc 
)
inherited

Definition at line 115 of file jump_capable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AutoPilotToErrorMessage()

bool JumpCapable::AutoPilotToErrorMessage ( const Unit un,
bool  automaticenergyrealloc,
std::string &  failuremessage,
int  recursive_level = 2 
)
inherited

Definition at line 120 of file jump_capable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ beginElement() [1/2]

static void Unit::beginElement ( void *  userData,
const XML_Char name,
const XML_Char **  atts 
)
static

◆ beginElement() [2/2]

void Unit::beginElement ( const std::string &  name,
const XMLSupport::AttributeList attributes 
)

◆ BShieldData()

float Damageable::BShieldData ( ) const
inherited

Definition at line 490 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BuyCargo() [1/3]

bool Carrier::BuyCargo ( const Cargo carg,
float creds 
)
inherited

Definition at line 770 of file carrier.cpp.

Here is the caller graph for this function:

◆ BuyCargo() [2/3]

bool Carrier::BuyCargo ( unsigned int  i,
unsigned int  quantity,
Unit buyer,
float creds 
)
inherited

Definition at line 780 of file carrier.cpp.

Here is the call graph for this function:

◆ BuyCargo() [3/3]

bool Carrier::BuyCargo ( const std::string &  cargo,
unsigned int  quantity,
Unit buyer,
float creds 
)
inherited

Definition at line 796 of file carrier.cpp.

Here is the call graph for this function:

◆ calculate_extent()

void Unit::calculate_extent ( bool  update_collide_queue)

Definition at line 570 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalculateNearestWarpUnit()

float JumpCapable::CalculateNearestWarpUnit ( float  minmultiplier,
Unit **  nearest_unit,
bool  count_negative_warp_units 
) const
inherited

Definition at line 385 of file jump_capable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CanAddCargo()

bool Carrier::CanAddCargo ( const Cargo carg) const
inherited

Definition at line 500 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CanDockWithMe()

int Unit::CanDockWithMe ( Unit dockingunit,
bool  forcedock = false 
)

Definition at line 2441 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ canDowngrade()

bool Unit::canDowngrade ( const Unit downgradeor,
int  mountoffset,
int  subunitoffset,
double &  percentage,
const Unit downgradelimit,
bool  gen_downgrade_list = true 
)

Definition at line 3140 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ canUpgrade()

bool Unit::canUpgrade ( const Unit upgrador,
int  mountoffset,
int  subunitoffset,
int  additive,
bool  force,
double &  percentage,
const Unit templ = NULL,
bool  force_change_on_nothing = false,
bool  gen_downgrade_list = true 
)

Definition at line 3094 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cargoSerializer()

std::string Carrier::cargoSerializer ( const struct XMLType input,
void *  mythis 
)
staticinherited

Definition at line 136 of file carrier.cpp.

Here is the call graph for this function:

◆ ChangeAnimation() [1/2]

void Drawable::ChangeAnimation ( const char *  name)
inherited

Definition at line 560 of file drawable.cpp.

Here is the call graph for this function:

◆ ChangeAnimation() [2/2]

void Drawable::ChangeAnimation ( unsigned int  AnimNumber)
inherited

Definition at line 567 of file drawable.cpp.

Here is the call graph for this function:

◆ ClampAngVel()

Vector Unit::ClampAngVel ( const Vector vel)

Definition at line 1223 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ ClampThrust()

Vector Unit::ClampThrust ( const Vector thrust,
bool  afterburn 
)

Definition at line 1258 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClampTorque()

Vector Unit::ClampTorque ( const Vector torque)

Definition at line 1157 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClampVelocity()

Vector Unit::ClampVelocity ( const Vector velocity,
const bool  afterburn 
)

Definition at line 1191 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void Drawable::clear ( )
inherited

Definition at line 601 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearMounts()

void Unit::ClearMounts ( )

Definition at line 1206 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cloak()

void Unit::Cloak ( bool  cloak)
virtual

Definition at line 1974 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CloakVisible()

float Unit::CloakVisible ( ) const
inline

Definition at line 609 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Collide()

bool Unit::Collide ( Unit target)

Definition at line 299 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CollideAll()

void Unit::CollideAll ( )

Definition at line 128 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CombatMode()

bool Unit::CombatMode ( )

Definition at line 1187 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ computeLockingPercent()

float Unit::computeLockingPercent ( )

Definition at line 77 of file cockpit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cosAngleFromMountTo()

float Unit::cosAngleFromMountTo ( Unit target,
float distance 
) const

Definition at line 693 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cosAngleTo()

float Unit::cosAngleTo ( Unit target,
float distance,
float  speed = 0.001,
float  range = 0.001,
bool  turnmargin = true 
) const

Definition at line 658 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CourseDeviation()

float JumpCapable::CourseDeviation ( const Vector OriginalCourse,
const Vector FinalCourse 
) const
inherited

Definition at line 480 of file jump_capable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DamageCargo()

void Damageable::DamageCargo ( InflictedDamage  inflicted_damage)
inherited

Definition at line 381 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DamageRandomSystem()

void Damageable::DamageRandomSystem ( InflictedDamage  inflicted_damage,
bool  player,
Vector  attack_vector 
)
inherited

Definition at line 354 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DamageRandSys()

void Unit::DamageRandSys ( float  dam,
const Vector vec,
float  randum = 1,
float  degrees = 1 
)

Definition at line 1434 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeactivateJumpDrive()

void JumpCapable::DeactivateJumpDrive ( )
inherited

Definition at line 489 of file jump_capable.cpp.

Here is the caller graph for this function:

◆ DealDamage()

InflictedDamage DamageableObject::DealDamage ( const CoreVector attack_vector,
Damage damage 
)
inherited

Definition at line 57 of file damageable_object.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DealDamageToHull()

float Damageable::DealDamageToHull ( const Vector pnt,
float  Damage 
)
inherited

Definition at line 61 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DealDamageToShield()

float Damageable::DealDamageToShield ( const Vector pnt,
float Damage 
)
inherited

Definition at line 77 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decreaseWarpEnergy()

void Energetic::decreaseWarpEnergy ( bool  insys,
float  time 
)
inherited

Definition at line 58 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecreaseWarpEnergy()

void Movable::DecreaseWarpEnergy ( bool  insystem,
float  time = 1.0f 
)
inherited
Here is the caller graph for this function:

◆ DecreaseWarpEnergyInWarp()

void Energetic::DecreaseWarpEnergyInWarp ( )
inherited

Definition at line 71 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Deselect()

void Unit::Deselect ( )

Definition at line 748 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ Destroy()

void Damageable::Destroy ( )
inherited

Definition at line 456 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Destroyed()

bool DamageableObject::Destroyed ( )
inherited

Definition at line 89 of file damageable_object.cpp.

Here is the caller graph for this function:

◆ DisableTurretAI()

void Intelligent::DisableTurretAI ( )
inherited

Definition at line 288 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dock()

int Unit::Dock ( Unit unitToDockWith)

Definition at line 2417 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DockedOrDocking()

char Unit::DockedOrDocking ( ) const
inline

Definition at line 914 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DockingPortLocations()

const std::vector< struct DockingPorts > & Unit::DockingPortLocations ( ) const

Definition at line 2254 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ DownCoordinateLevel()

Vector Movable::DownCoordinateLevel ( const Vector v) const
inherited

Definition at line 413 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Downgrade()

bool Unit::Downgrade ( const Unit downgradeor,
int  mountoffset,
int  subunitoffset,
double &  percentage,
const Unit downgradelimit,
bool  gen_downgrade_list = true 
)

Definition at line 3160 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Draw()

void Drawable::Draw ( const Transformation quat = identity_transformation,
const Matrix m = identity_matrix 
)
virtualinherited

this is the final, smoothly calculated cam

Reimplemented in AtmosphereHalo, and Planet.

Definition at line 168 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawableGetName()

std::string Unit::drawableGetName ( )
inlineoverridevirtual

Implements Drawable.

Definition at line 445 of file unit_generic.h.

Here is the call graph for this function:

◆ DrawableInit()

bool Drawable::DrawableInit ( const char *  filename,
int  faction,
Flightgroup flightgrp = NULL,
const char *  animationExt = NULL 
)
inherited

Definition at line 83 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawHalo()

void Drawable::DrawHalo ( bool  on_screen,
float  apparent_size,
Matrix  wmat,
int  cloak 
)
inherited

Definition at line 708 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawNow()

void Drawable::DrawNow ( const Matrix m = identity_matrix,
float  lod = 1000000000 
)
virtualinherited

Draws this unit with the transformation and matrix (should be equiv) separately.

Definition at line 385 of file drawable.cpp.

Here is the call graph for this function:

◆ DrawSubunits()

void Drawable::DrawSubunits ( bool  on_screen,
Matrix  wmat,
int  cloak,
float  average_scale,
unsigned char  char_damage 
)
inherited

Definition at line 752 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EjectCargo()

void Carrier::EjectCargo ( unsigned int  index)
inherited

Definition at line 162 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ endElement() [1/2]

static void Unit::endElement ( void *  userData,
const XML_Char name 
)
static

◆ endElement() [2/2]

void Unit::endElement ( const std::string &  name)

◆ EndRequestClearance()

bool Unit::EndRequestClearance ( Unit dockingunit)

Definition at line 2258 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ energyData()

float Energetic::energyData ( ) const
inherited

Definition at line 91 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ energyRechargeData()

float Energetic::energyRechargeData ( ) const
inherited

Definition at line 104 of file energetic.cpp.

Here is the caller graph for this function:

◆ EnqueueAI()

void Intelligent::EnqueueAI ( Order newAI)
inherited

Definition at line 160 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnqueueAIFirst()

void Intelligent::EnqueueAIFirst ( Order newAI)
inherited

Definition at line 171 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnqueueLastPythonAIScript()

bool Intelligent::EnqueueLastPythonAIScript ( )
inherited

Definition at line 99 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eraseOrderType()

void Intelligent::eraseOrderType ( unsigned int  type)
inherited

Definition at line 82 of file intelligent.cpp.

Here is the caller graph for this function:

◆ ExecuteAI()

void Intelligent::ExecuteAI ( )
inherited

Definition at line 182 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExpendEnergy() [1/2]

void Energetic::ExpendEnergy ( const bool  player_ship)
inherited

Definition at line 249 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExpendEnergy() [2/2]

void Energetic::ExpendEnergy ( float  usage)
inherited

Definition at line 262 of file energetic.cpp.

◆ ExpendEnergyToRechargeShields()

void Energetic::ExpendEnergyToRechargeShields ( )
inherited

Definition at line 320 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExpendFuel() [1/2]

float Energetic::ExpendFuel ( float  quantity)
inherited

expendFuel - reduce fuel by burning it

Parameters
quantity- requested quantity to use
Returns
- actual quantity used

Definition at line 151 of file energetic.cpp.

Here is the call graph for this function:

◆ ExpendFuel() [2/2]

void Energetic::ExpendFuel ( )
inherited

Definition at line 269 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExpendMomentaryFuelUsage()

float Energetic::ExpendMomentaryFuelUsage ( float  magnitude)
inherited

Definition at line 137 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Explode()

bool Unit::Explode ( bool  draw,
float  timeit 
)

Definition at line 2014 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExplodingProgress()

float Unit::ExplodingProgress ( ) const

Definition at line 2155 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExplosionRadius()

float Unit::ExplosionRadius ( )
protectedvirtual

Reimplemented in Missile.

Definition at line 1772 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FilterDowngradeList()

vector< CargoColor > & Unit::FilterDowngradeList ( std::vector< class CargoColor > &  mylist,
bool  downgrade = true 
)

Definition at line 4254 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FilterUpgradeList()

vector< CargoColor > & Unit::FilterUpgradeList ( std::vector< class CargoColor > &  mylist)

Definition at line 4348 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Fire()

void Armed::Fire ( unsigned int  bitmask,
bool  beams_target_owner = false 
)
inherited

Definition at line 199 of file armed.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FireEngines()

void Unit::FireEngines ( const Vector Direction,
float  FuelSpeed,
float  FMass 
)

Fire engine takes a unit vector for direction and how fast the fuel speed and mass coming out are.

Definition at line 1097 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flickerDamage()

bool Damageable::flickerDamage ( )
inherited

Definition at line 582 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ForceDock()

int Unit::ForceDock ( Unit utdw,
unsigned int  whichdockport 
)

Definition at line 2350 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ framesPerSecond()

double Drawable::framesPerSecond ( ) const
inherited

Definition at line 577 of file drawable.cpp.

◆ FreeDockingPort()

void Unit::FreeDockingPort ( unsigned int  whichport)

Definition at line 2278 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ FShieldData()

float Damageable::FShieldData ( ) const
inherited

Definition at line 479 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fuelData()

float Energetic::fuelData ( ) const
inherited

Definition at line 108 of file energetic.cpp.

Here is the caller graph for this function:

◆ GetAcceleration()

Vector Movable::GetAcceleration ( ) const
inlineinherited

Definition at line 174 of file movable.h.

Here is the caller graph for this function:

◆ getAIState()

Order* Intelligent::getAIState ( ) const
inlineinherited

Definition at line 47 of file intelligent.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAngularAcceleration()

Vector Movable::GetAngularAcceleration ( ) const
inlineinherited

Definition at line 178 of file movable.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAngularVelocity()

const Vector& Movable::GetAngularVelocity ( ) const
inlineinherited

Definition at line 215 of file movable.h.

Here is the caller graph for this function:

◆ getAnimationName()

string Drawable::getAnimationName ( unsigned int  animationNumber) const
inherited

Definition at line 545 of file drawable.cpp.

◆ getAnimationNumber()

unsigned int Drawable::getAnimationNumber ( const char *  name) const
inherited

Definition at line 549 of file drawable.cpp.

Here is the caller graph for this function:

◆ GetArmor()

const float Damageable::GetArmor ( int  facet = 0) const
inlineinherited

Definition at line 87 of file damageable.h.

Here is the caller graph for this function:

◆ GetArmorLayer()

DamageableLayer& Damageable::GetArmorLayer ( )
inlineinherited

Definition at line 99 of file damageable.h.

Here is the caller graph for this function:

◆ getAttackPreference()

const std::string & Unit::getAttackPreference ( ) const

Definition at line 4534 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttackPreferenceChar() [1/2]

unsigned char Unit::getAttackPreferenceChar ( )
inline

Definition at line 364 of file unit_generic.h.

Here is the caller graph for this function:

◆ getAttackPreferenceChar() [2/2]

unsigned char Unit::getAttackPreferenceChar ( ) const
inline

Definition at line 372 of file unit_generic.h.

◆ getAverageGunSpeed()

void Armed::getAverageGunSpeed ( float speed,
float grange,
float mrange 
) const
inherited

Definition at line 302 of file armed.cpp.

Here is the caller graph for this function:

◆ GetCargo() [1/4]

Cargo & Carrier::GetCargo ( unsigned int  i)
inherited

Definition at line 613 of file carrier.cpp.

Here is the caller graph for this function:

◆ GetCargo() [2/4]

const Cargo & Carrier::GetCargo ( unsigned int  i) const
inherited

Definition at line 618 of file carrier.cpp.

◆ GetCargo() [3/4]

Cargo * Carrier::GetCargo ( const std::string &  s,
unsigned int i 
)
inherited

Definition at line 644 of file carrier.cpp.

Here is the call graph for this function:

◆ GetCargo() [4/4]

const Cargo * Carrier::GetCargo ( const std::string &  s,
unsigned int i 
) const
inherited

Definition at line 652 of file carrier.cpp.

Here is the call graph for this function:

◆ getCargoVolume()

float Carrier::getCargoVolume ( void  ) const
inherited

Definition at line 534 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCockpit()

const std::string & Unit::getCockpit ( ) const

Definition at line 740 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ getCollideTree()

csOPCODECollider * Intelligent::getCollideTree ( const Vector scale = Vector(1,            1,            1),
std::vector< struct mesh_polygon > *  = NULL 
)
inherited

Definition at line 304 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCombatRole()

const std::string & Unit::getCombatRole ( ) const

Definition at line 4545 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetComputerData()

Computer& Unit::GetComputerData ( )
inline

Definition at line 477 of file unit_generic.h.

◆ GetDestinations()

const std::vector< std::string > & JumpCapable::GetDestinations ( ) const
inherited

Definition at line 496 of file jump_capable.cpp.

Here is the caller graph for this function:

◆ getEmptyCargoVolume()

float Carrier::getEmptyCargoVolume ( void  ) const
inherited

Definition at line 524 of file carrier.cpp.

Here is the caller graph for this function:

◆ getEmptyUpgradeVolume()

float Carrier::getEmptyUpgradeVolume ( void  ) const
inherited

Definition at line 529 of file carrier.cpp.

Here is the caller graph for this function:

◆ getFgID()

const string Unit::getFgID ( )

Definition at line 600 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ getFgSubnumber()

int Unit::getFgSubnumber ( ) const
inline

Definition at line 953 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFilename()

const string& Unit::getFilename ( ) const
inline

Definition at line 992 of file unit_generic.h.

◆ getFlightgroup()

Flightgroup* Unit::getFlightgroup ( ) const
inline

Definition at line 948 of file unit_generic.h.

Here is the caller graph for this function:

◆ getFuelUsage()

float Energetic::getFuelUsage ( bool  afterburner)
staticinherited

Definition at line 112 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFullAIDescription()

string Intelligent::getFullAIDescription ( )
inherited

Definition at line 210 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFullname()

const string& Unit::getFullname ( ) const
inline

Definition at line 988 of file unit_generic.h.

Here is the caller graph for this function:

◆ getHiddenCargoVolume()

float Carrier::getHiddenCargoVolume ( void  ) const
inherited

Definition at line 495 of file carrier.cpp.

Here is the caller graph for this function:

◆ getHudImage()

VSSprite * Drawable::getHudImage ( ) const
inherited

Definition at line 1043 of file drawable.cpp.

Here is the caller graph for this function:

◆ GetHull()

const float Damageable::GetHull ( ) const
inlineinherited

Definition at line 82 of file damageable.h.

Here is the caller graph for this function:

◆ GetHullLayer()

DamageableLayer& Damageable::GetHullLayer ( )
inlineinherited

Definition at line 95 of file damageable.h.

◆ GetHullPercent()

virtual const float Damageable::GetHullPercent ( ) const
inlinevirtualinherited

Reimplemented in Planet.

Definition at line 111 of file damageable.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetImageInformation()

UnitImages< void > & Unit::GetImageInformation ( )

Definition at line 4380 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ GetJumpStatus()

const Energetic::UnitJump & JumpCapable::GetJumpStatus ( ) const
inherited

Definition at line 501 of file jump_capable.cpp.

Here is the caller graph for this function:

◆ GetManifest()

std::string Carrier::GetManifest ( unsigned int  i,
Unit scanningUnit,
const Vector original_velocity 
) const
inherited

FIXME somehow mangle string

Definition at line 710 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMass() [1/2]

float Movable::getMass ( )
inlineinherited

Definition at line 51 of file movable.h.

Here is the caller graph for this function:

◆ getMass() [2/2]

float Movable::getMass ( ) const
inlineinherited

Definition at line 55 of file movable.h.

◆ GetMass()

float Movable::GetMass ( ) const
inlineinherited

Definition at line 231 of file movable.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMaxAccelerationInDirectionOf()

float Movable::GetMaxAccelerationInDirectionOf ( const Vector ref,
bool  afterburn 
) const
inherited

Definition at line 111 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMaxWarpFieldStrength()

double Movable::GetMaxWarpFieldStrength ( float  rampmult = 1.f) const
inherited

Definition at line 436 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMinDis()

double Intelligent::getMinDis ( const QVector pnt) const
inherited

Definition at line 226 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMoment()

float Movable::GetMoment ( ) const
inlineinherited

Definition at line 227 of file movable.h.

Here is the caller graph for this function:

◆ GetNebula()

Nebula* Unit::GetNebula ( ) const
inline

Definition at line 405 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNetAcceleration()

Vector Movable::GetNetAcceleration ( ) const
inherited

Definition at line 95 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNetAngularAcceleration()

Vector Movable::GetNetAngularAcceleration ( ) const
inherited

Definition at line 103 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNumMounts()

int Armed::getNumMounts ( ) const
inherited

Definition at line 308 of file armed.cpp.

Here is the caller graph for this function:

◆ GetOrientation()

void Movable::GetOrientation ( Vector p,
Vector q,
Vector r 
) const
inherited

Definition at line 87 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRelation()

float Intelligent::getRelation ( const Unit other) const
inherited

Definition at line 220 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetShield()

const float Damageable::GetShield ( int  facet = 0) const
inlineinherited

Definition at line 91 of file damageable.h.

Here is the caller graph for this function:

◆ GetShieldLayer()

DamageableLayer& Damageable::GetShieldLayer ( )
inlineinherited

Definition at line 103 of file damageable.h.

Here is the caller graph for this function:

◆ GetShieldPercent()

virtual const float Damageable::GetShieldPercent ( ) const
inlinevirtualinherited

Reimplemented in Planet.

Definition at line 115 of file damageable.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetShieldRegeneration()

const float Damageable::GetShieldRegeneration ( ) const
inlineinherited

Definition at line 107 of file damageable.h.

Here is the call graph for this function:

◆ GetSortedCargoCat()

void Carrier::GetSortedCargoCat ( const std::string &  category,
size_t &  catbegin,
size_t &  catend 
)
inherited

Definition at line 623 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStarSystem() [1/2]

StarSystem * JumpCapable::getStarSystem ( )
inherited

Definition at line 506 of file jump_capable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStarSystem() [2/2]

const StarSystem * JumpCapable::getStarSystem ( ) const
inherited

Definition at line 521 of file jump_capable.cpp.

Here is the call graph for this function:

◆ getSubUnits()

un_iter Unit::getSubUnits ( )

Definition at line 762 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTractorability()

enum Unit::tractorHow Unit::getTractorability ( ) const

Definition at line 4696 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTransformation()

const Matrix& Unit::GetTransformation ( ) const
inline

Definition at line 646 of file unit_generic.h.

Here is the caller graph for this function:

◆ getUnitRole()

const std::string & Unit::getUnitRole ( ) const

Definition at line 4530 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUnitRoleChar() [1/2]

unsigned char Unit::getUnitRoleChar ( )
inline

Definition at line 368 of file unit_generic.h.

Here is the caller graph for this function:

◆ getUnitRoleChar() [2/2]

unsigned char Unit::getUnitRoleChar ( ) const
inline

Definition at line 376 of file unit_generic.h.

Here is the call graph for this function:

◆ getUpgradeVolume()

float Carrier::getUpgradeVolume ( void  ) const
inherited

Definition at line 602 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetVelocity()

const Vector& Movable::GetVelocity ( ) const
inlineinherited

Definition at line 220 of file movable.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetVelocityDifficultyMult()

Cockpit * Unit::GetVelocityDifficultyMult ( float difficulty) const

Definition at line 1088 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWarpEnergy()

float Energetic::getWarpEnergy ( ) const
inherited

Definition at line 162 of file energetic.cpp.

Here is the caller graph for this function:

◆ GetWarpRefVelocity()

Vector JumpCapable::GetWarpRefVelocity ( ) const
inherited

Definition at line 536 of file jump_capable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetWarpVelocity()

Vector JumpCapable::GetWarpVelocity ( ) const
inherited

Definition at line 556 of file jump_capable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasPendingClearanceRequests()

bool Unit::hasPendingClearanceRequests ( ) const

Definition at line 2483 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ hasSubUnits()

bool Unit::hasSubUnits ( ) const
inline

Contains information about a particular Mount on a unit.

And the weapons it has, where it is, where it's aimed, The ammo and the weapon type. As well as the possible weapons it may fit Warning: type has a string inside... cannot be memcpy'd

Definition at line 271 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImportPartList()

void Unit::ImportPartList ( const std::string &  category,
float  price,
float  pricedev,
float  quantity,
float  quantdev 
)

Definition at line 4397 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InCorrectStarSystem()

bool JumpCapable::InCorrectStarSystem ( StarSystem active)
inherited

Definition at line 590 of file jump_capable.cpp.

Here is the caller graph for this function:

◆ increaseWarpEnergy()

void Energetic::increaseWarpEnergy ( bool  insys,
float  time 
)
inherited

Definition at line 166 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IncreaseWarpEnergy()

void Movable::IncreaseWarpEnergy ( bool  insystem,
float  time = 1.0f 
)
inherited
Here is the caller graph for this function:

◆ Init() [1/2]

void Unit::Init ( )

Definition at line 387 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Init() [2/2]

void Unit::Init ( const char *  filename,
bool  SubUnit,
int  faction,
std::string  customizedUnit = std::string(            ""),
Flightgroup flightgroup = NULL,
int  fg_subnumber = 0 
)

Definition at line 411 of file unit_generic.cpp.

Here is the call graph for this function:

◆ InRange() [1/2]

bool Unit::InRange ( const Unit target,
bool  cone = true,
bool  cap = true 
) const
inline

Definition at line 777 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InRange() [2/2]

bool Unit::InRange ( const Unit target,
double &  mm,
bool  cone,
bool  cap,
bool  lock 
) const

Definition at line 132 of file unit_generic.cpp.

Here is the call graph for this function:

◆ Inside()

bool Unit::Inside ( const QVector position,
const float  radius,
Vector normal,
float dist 
)

Definition at line 172 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InsideCollideTree()

bool Unit::InsideCollideTree ( Unit smaller,
QVector bigpos,
Vector bigNormal,
QVector smallpos,
Vector smallNormal,
bool  bigasteroid = false,
bool  smallasteroid = false 
)

Definition at line 185 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAnimatedMesh()

bool Drawable::isAnimatedMesh ( ) const
inherited

Definition at line 573 of file drawable.cpp.

Here is the caller graph for this function:

◆ IsBase()

bool Unit::IsBase ( ) const

Definition at line 4364 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ IsCleared()

bool Unit::IsCleared ( const Unit dockignunit) const

Definition at line 2478 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ isContinuousLoop()

bool Drawable::isContinuousLoop ( ) const
inherited

Definition at line 593 of file drawable.cpp.

Here is the caller graph for this function:

◆ isDocked()

bool Unit::isDocked ( const Unit dockingUnit) const

Definition at line 2487 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ isEnemy()

bool Intelligent::isEnemy ( const Unit other) const
inlineinherited

Definition at line 82 of file intelligent.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsExploding()

bool Unit::IsExploding ( ) const
inline

Definition at line 626 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isFriend()

bool Intelligent::isFriend ( const Unit other) const
inlineinherited

Definition at line 86 of file intelligent.h.

Here is the call graph for this function:

◆ isJumppoint()

bool Unit::isJumppoint ( ) const
inline

Definition at line 1018 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isNeutral()

bool Intelligent::isNeutral ( const Unit other) const
inlineinherited

Definition at line 90 of file intelligent.h.

Here is the call graph for this function:

◆ isPlanet()

bool Unit::isPlanet ( ) const
inline

Definition at line 1014 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isPlayerShip()

bool Unit::isPlayerShip ( )
overridevirtual

Reimplemented from Movable.

Definition at line 5381 of file unit_generic.cpp.

Here is the call graph for this function:

◆ isStarShip()

bool Unit::isStarShip ( ) const
inline

Definition at line 1010 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSubUnit()

bool Unit::isSubUnit ( ) const
inline

Definition at line 280 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isTractorable()

bool Unit::isTractorable ( enum tractorHow  how = tractorBoth) const

Definition at line 4684 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isUnit()

virtual enum Vega_UnitType Unit::isUnit ( ) const
inlinevirtual

Reimplemented in Planet, Missile, Building, Enhancement, Asteroid, and Nebula.

Definition at line 997 of file unit_generic.h.

Here is the call graph for this function:

◆ jumpReactToCollision()

bool Unit::jumpReactToCollision ( Unit smaller)

Definition at line 1027 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Kill() [1/2]

void Unit::Kill ( )
inline

Definition at line 43 of file unit.h.

Here is the caller graph for this function:

◆ Kill() [2/2]

void Unit::Kill ( bool  eraseFromSave = true,
bool  quitting = false 
)

Definition at line 1676 of file unit_generic.cpp.

Here is the call graph for this function:

◆ Killed() [1/2]

bool Unit::Killed ( )
inline

Definition at line 50 of file unit.h.

Here is the caller graph for this function:

◆ Killed() [2/2]

bool Unit::Killed ( ) const
inline

Definition at line 622 of file unit_generic.h.

◆ killSounds()

void Audible::killSounds ( )
protectedinherited

Definition at line 127 of file audible.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LateralThrust()

void Unit::LateralThrust ( float  amt)

Definition at line 1354 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ leach()

void Damageable::leach ( float  XshieldPercent,
float  YrechargePercent,
float  ZenergyPercent 
)
inherited

Definition at line 533 of file damageable.cpp.

Here is the caller graph for this function:

◆ LightShields()

void Drawable::LightShields ( const Vector pnt,
const Vector normal,
float  amt,
const GFXColor color 
)
inherited

Definition at line 967 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadAIScript()

void Intelligent::LoadAIScript ( const std::string &  aiscript)
inherited

Definition at line 58 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadLastPythonAIScript()

bool Intelligent::LoadLastPythonAIScript ( )
inherited

Definition at line 88 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadRow()

void Unit::LoadRow ( class CSVRow row,
std::string  unitMod,
bool  saved_game 
)

Definition at line 671 of file unit_csv.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadXML() [1/2]

void Unit::LoadXML ( const char *  filename,
const char *  unitModifications = "",
std::string *  xmlbuffer = NULL 
)

◆ LoadXML() [2/2]

void Unit::LoadXML ( VSFileSystem::VSFile f,
const char *  unitModifications = "",
std::string *  xmlbuffer = NULL 
)

◆ LocalCoordinates()

Vector Unit::LocalCoordinates ( const Unit un) const
inline

Definition at line 604 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LocalPosition()

QVector Unit::LocalPosition ( ) const
inline

Definition at line 651 of file unit_generic.h.

Here is the caller graph for this function:

◆ LockMissile()

int Armed::LockMissile ( ) const
inherited

Definition at line 312 of file armed.cpp.

◆ LockTarget()

void Armed::LockTarget ( bool  myboo)
inherited

Definition at line 327 of file armed.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LongitudinalThrust()

void Unit::LongitudinalThrust ( float  amt)

Definition at line 1374 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LShieldData()

float Damageable::LShieldData ( ) const
inherited

Definition at line 501 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaintainECM()

void Energetic::MaintainECM ( )
inherited

Definition at line 283 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaintainShields()

void Energetic::MaintainShields ( )
inherited

Definition at line 294 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeMasterPartList()

Unit * Carrier::makeMasterPartList ( )
staticinherited

Definition at line 545 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ massSerializer()

std::string Unit::massSerializer ( const struct XMLType input,
void *  mythis 
)
staticprotected

Definition at line 4457 of file unit_generic.cpp.

Here is the call graph for this function:

◆ maxEnergyData()

float Energetic::maxEnergyData ( ) const
inherited

Definition at line 179 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaxShieldVal()

float Damageable::MaxShieldVal ( ) const
inherited

Definition at line 577 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaxThrust()

Vector Unit::MaxThrust ( const Vector thrust)

Definition at line 1249 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ MaxTorque()

Vector Unit::MaxTorque ( const Vector torque)

Definition at line 1150 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ MountPercentOperational()

Vector Unit::MountPercentOperational ( int  whichmount)

Definition at line 4015 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ mountSerializer()

std::string Unit::mountSerializer ( const struct XMLType input,
void *  mythis 
)
staticprotected

Definition at line 4471 of file unit_generic.cpp.

Here is the call graph for this function:

◆ numAnimations()

unsigned int Drawable::numAnimations ( )
inherited

Definition at line 585 of file drawable.cpp.

Here is the caller graph for this function:

◆ numCargo()

unsigned int Carrier::numCargo ( ) const
inherited

Definition at line 705 of file carrier.cpp.

Here is the caller graph for this function:

◆ nummesh()

unsigned int Drawable::nummesh ( ) const
inlineinherited

Definition at line 142 of file drawable.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

Unit& Unit::operator= ( const Unit )
delete

◆ PerformDockingOperations()

void Unit::PerformDockingOperations ( )

CHOOSE NEW MISSION

force him in a box...err where he is

Definition at line 2314 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PitchTorque()

void Unit::PitchTorque ( float  amt)

Definition at line 1393 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playArmorDamageSound()

void Audible::playArmorDamageSound ( const Vector pnt)
inherited

Definition at line 104 of file audible.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playEngineSound()

void Audible::playEngineSound ( )
protectedinherited

Definition at line 118 of file audible.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playExplosionDamageSound()

void Audible::playExplosionDamageSound ( )
protectedinherited

Definition at line 123 of file audible.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHullDamageSound()

void Audible::playHullDamageSound ( const Vector pnt)
inherited

Definition at line 111 of file audible.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playShieldDamageSound()

void Audible::playShieldDamageSound ( const Vector pnt)
inherited

Definition at line 97 of file audible.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playSound()

void Audible::playSound ( SoundType  type)
inherited

Definition at line 93 of file audible.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Position()

QVector Unit::Position ( ) const
inline

Definition at line 642 of file unit_generic.h.

◆ PositionITTS()

QVector Armed::PositionITTS ( const QVector firingposit,
Vector  firingvelocity,
float  gunspeed,
bool  smooth_itts 
) const
inherited

Definition at line 335 of file armed.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PriceCargo()

float Carrier::PriceCargo ( const std::string &  s)
inherited

Definition at line 581 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrimeOrders() [1/2]

void Intelligent::PrimeOrders ( )
inherited

Definition at line 123 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrimeOrders() [2/2]

void Intelligent::PrimeOrders ( Order newAI)
inherited

Definition at line 109 of file intelligent.cpp.

Here is the call graph for this function:

◆ PrimeOrdersLaunched()

void Intelligent::PrimeOrdersLaunched ( )
inherited

Definition at line 134 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProcessDeleteQueue()

void Unit::ProcessDeleteQueue ( )
static

might modify unitdeletequeue

Definition at line 1777 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ queryFrustum()

bool Unit::queryFrustum ( double  frustum[6][4]) const

Updates the collide Queue with any possible change in sectors Queries if this unit is within a given frustum.

Definition at line 5387 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ querySphere() [1/2]

bool Unit::querySphere ( const QVector pnt,
float  err 
) const

Definition at line 479 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ querySphere() [2/2]

float Unit::querySphere ( const QVector start,
const QVector end,
float  my_unit_radius = 0 
) const

Definition at line 536 of file unit_collide.cpp.

Here is the call graph for this function:

◆ querySphereClickList() [1/2]

float Unit::querySphereClickList ( const QVector st,
const QVector dir,
float  err 
) const

Definition at line 2174 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ querySphereClickList() [2/2]

bool Unit::querySphereClickList ( int  mouseX,
int  mouseY,
float  err,
Camera activeCam 
) const

Queries the bounding sphere with a duo of mouse coordinates that project to the center of a ship and compare with a sphere...pretty fast queries the sphere for weapons (world space point) Only in Unit class.

Definition at line 38 of file unit_click.h.

Here is the call graph for this function:

◆ querySphereNoRecurse()

float Unit::querySphereNoRecurse ( const QVector start,
const QVector end,
float  my_unit_radius = 0 
) const

Definition at line 556 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rayCollide()

Unit * Unit::rayCollide ( const QVector st,
const QVector end,
Vector normal,
float distance 
)

Definition at line 415 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ realPosition()

QVector Unit::realPosition ( )
overridevirtual

Implements Movable.

Definition at line 998 of file unit_generic.cpp.

Here is the call graph for this function:

◆ rechargeEnergy()

void Energetic::rechargeEnergy ( )
inherited

Definition at line 183 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RechargeEnergy()

void Unit::RechargeEnergy ( )
private

◆ RechargeWarpCapacitors()

void Energetic::RechargeWarpCapacitors ( const bool  player_ship)
inherited

Definition at line 348 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReduceToTemplate()

bool Unit::ReduceToTemplate ( )

Definition at line 3996 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Ref() [1/2]

void Unit::Ref ( )
inline

Definition at line 57 of file unit.h.

Here is the caller graph for this function:

◆ Ref() [2/2]

void Unit::Ref ( )

◆ refillWarpEnergy()

bool Energetic::refillWarpEnergy ( )
inherited

Definition at line 189 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RegenerateShields()

void Damageable::RegenerateShields ( const float  difficulty,
const bool  player_ship 
)
inherited

Definition at line 537 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveCargo()

int Carrier::RemoveCargo ( unsigned int  i,
int  quantity,
bool  eraseZero = true 
)
inherited

Definition at line 455 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveFromSystem()

void Unit::RemoveFromSystem ( )

Definition at line 58 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Repair()

void Unit::Repair ( )

Definition at line 4593 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RepairCost()

int Unit::RepairCost ( )

Definition at line 4025 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RepairUpgrade()

int Unit::RepairUpgrade ( )

Definition at line 4065 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RepairUpgradeCargo()

bool Unit::RepairUpgradeCargo ( Cargo item,
Unit baseUnit,
float credits 
)

Definition at line 4176 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RequestClearance()

bool Unit::RequestClearance ( Unit dockingunit)

returns -1 if unit cannot dock, otherwise returns which dock it can dock at

Definition at line 2270 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ RequestPhysics()

void Unit::RequestPhysics ( )

Definition at line 4723 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetThreatLevel()

void Unit::ResetThreatLevel ( )
inline

Definition at line 795 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResolveForces()

Vector Unit::ResolveForces ( const Transformation trans,
const Matrix transmat 
)
overridevirtual

Resolves forces of given unit on a physics frame.

Reimplemented from Movable.

Definition at line 5018 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RestoreGodliness()

void Unit::RestoreGodliness ( )

Definition at line 184 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReTargetFg()

void Unit::ReTargetFg ( int  which_target = 0)

Definition at line 802 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RollTorque()

void Unit::RollTorque ( float  amt)

Definition at line 1402 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Rotate()

void Movable::Rotate ( const Vector axis)
inherited

Definition at line 256 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RShieldData()

float Damageable::RShieldData ( ) const
inherited

Definition at line 512 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rSize()

float Unit::rSize ( ) const
inline

Definition at line 637 of file unit_generic.h.

◆ Select()

void Unit::Select ( )

Definition at line 744 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ SelectAllWeapon()

void Armed::SelectAllWeapon ( bool  Missile)
inherited

Definition at line 362 of file armed.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SellCargo() [1/2]

bool Carrier::SellCargo ( unsigned int  i,
int  quantity,
float creds,
Cargo carg,
Unit buyer 
)
inherited

Definition at line 735 of file carrier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SellCargo() [2/2]

bool Carrier::SellCargo ( const std::string &  s,
int  quantity,
float creds,
Cargo carg,
Unit buyer 
)
inherited

Definition at line 756 of file carrier.cpp.

◆ setAfterburnerEnergy()

void Energetic::setAfterburnerEnergy ( float  aft)
inherited

Definition at line 207 of file energetic.cpp.

◆ SetAI()

void Intelligent::SetAI ( Order newAI)
inherited

Definition at line 149 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetAllVisible()

void Unit::SetAllVisible ( bool  isvis)

Definition at line 778 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ SetAngularVelocity()

void Movable::SetAngularVelocity ( const Vector v)
inherited

Definition at line 127 of file movable.cpp.

Here is the caller graph for this function:

◆ SetAniSpeed()

void Drawable::SetAniSpeed ( float  speed)
inherited

Definition at line 597 of file drawable.cpp.

Here is the caller graph for this function:

◆ setAttackPreference()

void Unit::setAttackPreference ( const std::string &  s)

Definition at line 4526 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAverageGunSpeed()

void Armed::setAverageGunSpeed ( )
inherited

Definition at line 372 of file armed.cpp.

Here is the caller graph for this function:

◆ SetCollisionParent()

void Unit::SetCollisionParent ( Unit name)

Definition at line 2160 of file unit_generic.cpp.

◆ setCombatRole()

void Unit::setCombatRole ( const std::string &  s)

Definition at line 4539 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCurPosition()

void Unit::SetCurPosition ( const QVector pos)
inline

Sets the cumulative transformation matrix's position...for setting up to be out in the middle of nowhere.

Definition at line 656 of file unit_generic.h.

Here is the caller graph for this function:

◆ setEnergyRecharge()

void Energetic::setEnergyRecharge ( float  enrech)
inherited

Definition at line 211 of file energetic.cpp.

◆ setFaceCamera()

void Unit::setFaceCamera ( )

Definition at line 116 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ SetFaction()

void Unit::SetFaction ( int  faction)

Definition at line 610 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFg()

void Unit::SetFg ( Flightgroup fg,
int  fg_snumber 
)

Definition at line 617 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ setFuel()

void Energetic::setFuel ( float  f)
inherited

Definition at line 215 of file energetic.cpp.

◆ setFullname()

void Unit::setFullname ( std::string  name)
inline

Definition at line 984 of file unit_generic.h.

Here is the caller graph for this function:

◆ SetGlowVisible()

void Unit::SetGlowVisible ( bool  isvis)

Definition at line 786 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ setMass()

void Movable::setMass ( float  mass)
inlineinherited

Definition at line 59 of file movable.h.

Here is the caller graph for this function:

◆ SetNebula()

void Unit::SetNebula ( Nebula neb)

Definition at line 120 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetOrientation() [1/3]

void Movable::SetOrientation ( QVector  q,
QVector  r 
)
inherited

Definition at line 381 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetOrientation() [2/3]

void Movable::SetOrientation ( Quaternion  Q)
inherited

Definition at line 397 of file movable.cpp.

◆ SetOrientation() [3/3]

void Movable::SetOrientation ( QVector  p,
QVector  q,
QVector  r 
)
inherited

Definition at line 390 of file movable.cpp.

Here is the call graph for this function:

◆ SetOwner()

void Unit::SetOwner ( Unit target)

Definition at line 1970 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ SetPosAndCumPos()

void Unit::SetPosAndCumPos ( const QVector pos)
inline

Definition at line 660 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetPosition()

void Movable::SetPosition ( const QVector pos)
inherited

Definition at line 83 of file movable.cpp.

Here is the caller graph for this function:

◆ SetRecursiveOwner()

void Unit::SetRecursiveOwner ( Unit target)

Definition at line 1996 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetResolveForces()

void Movable::SetResolveForces ( bool  ys)
inherited

Definition at line 132 of file movable.cpp.

Here is the caller graph for this function:

◆ setTargetFg()

void Unit::setTargetFg ( std::string  primary,
std::string  secondary = std::string(),
std::string  tertiary = std::string() 
)

Definition at line 794 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTractorability()

void Unit::setTractorability ( enum tractorHow  how)

Definition at line 4692 of file unit_generic.cpp.

◆ SetTurretAI()

void Intelligent::SetTurretAI ( )
inherited

Definition at line 259 of file intelligent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUnitRole()

void Unit::setUnitRole ( const std::string &  s)

Definition at line 4522 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetVelocity()

void Movable::SetVelocity ( const Vector v)
inherited

Definition at line 123 of file movable.cpp.

Here is the caller graph for this function:

◆ SetVisible()

void Unit::SetVisible ( bool  isvis)

Definition at line 770 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ ShieldUp()

bool Damageable::ShieldUp ( const Vector pnt) const
inherited

Definition at line 46 of file damageable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SortCargo()

void Carrier::SortCargo ( )
inherited

Definition at line 111 of file carrier.cpp.

Here is the caller graph for this function:

◆ Sparkle()

void Drawable::Sparkle ( bool  on_screen,
Matrix ctm 
)
inherited

Drawable::Sparkle caused damaged units to emit sparks.

Definition at line 642 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Split()

virtual void Unit::Split ( int  level)
inlinevirtual

Definition at line 426 of file unit_generic.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StartAnimation()

void Drawable::StartAnimation ( unsigned int  how_many_times = 0,
int  numAnimation = 0 
)
inherited

Definition at line 533 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StealMeshes()

vector< Mesh * > Unit::StealMeshes ( )

Definition at line 543 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StopAnimation()

void Drawable::StopAnimation ( )
inherited

Definition at line 541 of file drawable.cpp.

Here is the caller graph for this function:

◆ subunitSerializer()

std::string Unit::subunitSerializer ( const struct XMLType input,
void *  mythis 
)
staticprotected

Definition at line 4506 of file unit_generic.cpp.

Here is the call graph for this function:

◆ SwitchCombatFlightMode()

void Unit::SwitchCombatFlightMode ( )

Definition at line 1179 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ Target() [1/3]

Unit * Unit::Target ( )

Definition at line 164 of file unit_generic.cpp.

◆ Target() [2/3]

const Unit * Unit::Target ( ) const

Definition at line 168 of file unit_generic.cpp.

◆ Target() [3/3]

void Unit::Target ( Unit targ)

Definition at line 1920 of file unit_generic.cpp.

Here is the call graph for this function:

◆ TargetLocked()

bool Armed::TargetLocked ( const Unit checktarget = nullptr) const
inherited

Definition at line 414 of file armed.cpp.

Here is the caller graph for this function:

◆ TargetTracked()

bool Armed::TargetTracked ( const Unit checktarget = nullptr)
inherited

Definition at line 422 of file armed.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TargetTurret()

void Unit::TargetTurret ( Unit targ)

Definition at line 1887 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Threat()

Unit * Unit::Threat ( )

Definition at line 180 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ Threaten()

void Unit::Threaten ( Unit targ,
float  danger 
)

Definition at line 730 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ Thrust()

void Unit::Thrust ( const Vector amt,
bool  afterburn = false 
)
virtual

Definition at line 4957 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ timePerFrame()

double Drawable::timePerFrame ( ) const
inherited

Definition at line 581 of file drawable.cpp.

◆ ToggleAnimatedMesh()

void Drawable::ToggleAnimatedMesh ( bool  on)
inherited

Definition at line 589 of file drawable.cpp.

◆ ToggleWeapon()

void Armed::ToggleWeapon ( bool  Missile,
bool  forward = true 
)
inherited

Definition at line 442 of file armed.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToLocalCoordinates()

Vector Movable::ToLocalCoordinates ( const Vector v) const
inherited

Definition at line 421 of file movable.cpp.

Here is the caller graph for this function:

◆ totalShieldEnergyCapacitance()

float Energetic::totalShieldEnergyCapacitance ( )
inherited

Definition at line 234 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToWorldCoordinates()

Vector Movable::ToWorldCoordinates ( const Vector v) const
inherited

Definition at line 431 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TrackingGuns()

float Armed::TrackingGuns ( bool missileLock)
inherited

Definition at line 451 of file armed.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransferUnitToSystem() [1/2]

bool JumpCapable::TransferUnitToSystem ( StarSystem NewSystem)
virtualinherited

Definition at line 594 of file jump_capable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransferUnitToSystem() [2/2]

bool Unit::TransferUnitToSystem ( unsigned int  whichJumpQueue,
StarSystem *&  previouslyActiveStarSystem,
bool  DoSightAndSound 
)
overridevirtual

eradicating from system, leaving no trace

Reimplemented from JumpCapable.

Definition at line 5464 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TurretFAW()

void Unit::TurretFAW ( )

Definition at line 4368 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UnDock()

bool Unit::UnDock ( Unit unitToDockWith)

Definition at line 2508 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UnFire()

void Armed::UnFire ( )
inherited

Definition at line 466 of file armed.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UnRef() [1/2]

void Unit::UnRef ( )
inline

Definition at line 64 of file unit.h.

Here is the caller graph for this function:

◆ UnRef() [2/2]

void Unit::UnRef ( )

◆ UpAndDownGrade()

bool Unit::UpAndDownGrade ( const Unit up,
const Unit templ,
int  mountoffset,
int  subunitoffset,
bool  touchme,
bool  downgrade,
int  additive,
bool  forcetransaction,
double &  percentage,
const Unit downgrade_min,
bool  force_change_on_nothing,
bool  gen_downgrade_list 
)

Definition at line 3398 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpCoordinateLevel()

Vector Movable::UpCoordinateLevel ( const Vector v) const
inherited

Definition at line 403 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateCloak()

void Unit::UpdateCloak ( )

Definition at line 5331 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateCollideQueue()

void Unit::UpdateCollideQueue ( StarSystem ss,
CollideMap::iterator  hint[NUM_COLLIDE_MAPS] 
)

Definition at line 113 of file unit_collide.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateFrames()

void Drawable::UpdateFrames ( )
staticinherited

Definition at line 515 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateHudMatrix()

void Drawable::UpdateHudMatrix ( int  whichcam)
inherited

Sets the camera to be within this unit.

Definition at line 1025 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdatePhysics()

void Movable::UpdatePhysics ( const Transformation trans,
const Matrix transmat,
const Vector CumulativeVelocity,
bool  ResolveLast,
UnitCollection uc,
Unit superunit 
)
inherited

Definition at line 136 of file movable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdatePhysics2()

void Unit::UpdatePhysics2 ( const Transformation trans,
const Transformation old_physical_state,
const Vector accel,
float  difficulty,
const Matrix transmat,
const Vector CumulativeVelocity,
bool  ResolveLast,
UnitCollection uc = NULL 
)
overridevirtual

Updates physics given unit space transformations and if this is the last physics frame in the current gfx frame.

Reimplemented from Movable.

Definition at line 4905 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdatePhysics3()

void Unit::UpdatePhysics3 ( const Transformation trans,
const Matrix transmat,
bool  lastframe,
UnitCollection uc,
Unit superunit 
)
overridevirtual

Implements Movable.

Definition at line 5026 of file unit_generic.cpp.

Here is the call graph for this function:

◆ UpdateSubunitPhysics() [1/2]

void Unit::UpdateSubunitPhysics ( const Transformation trans,
const Matrix transmat,
const Vector CumulativeVelocity,
bool  ResolveLast,
UnitCollection uc,
Unit superunit 
)
virtual

Definition at line 912 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateSubunitPhysics() [2/2]

void Unit::UpdateSubunitPhysics ( Unit subunit,
const Transformation trans,
const Matrix transmat,
const Vector CumulativeVelocity,
bool  ResolveLast,
UnitCollection uc,
Unit superunit 
)
virtual

Definition at line 977 of file unit_generic.cpp.

Here is the call graph for this function:

◆ Upgrade() [1/2]

bool Unit::Upgrade ( const Unit upgrador,
int  mountoffset,
int  subunitoffset,
int  additive,
bool  force,
double &  percentage,
const Unit templ = NULL,
bool  force_change_on_nothing = false,
bool  gen_downgrade_list = true 
)

Definition at line 3117 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Upgrade() [2/2]

double Unit::Upgrade ( const std::string &  file,
int  mountoffset,
int  subunitoffset,
bool  force,
bool  loop_through_mounts 
)

Definition at line 3207 of file unit_generic.cpp.

Here is the call graph for this function:

◆ UpgradeInterface()

void Unit::UpgradeInterface ( Unit base)
virtual

Definition at line 5430 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpgradeMounts()

bool Unit::UpgradeMounts ( const Unit up,
int  subunitoffset,
bool  touchme,
bool  downgrade,
int numave,
const Unit templ,
double &  percentage 
)

go through all guns

search for right mount to remove starting from j. this is the right name

calculate scrap value (if damaged)

deactivate weapon

deactivate weapon

go through all guns

Definition at line 2760 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpgradeSubUnits()

bool Unit::UpgradeSubUnits ( const Unit up,
int  subunitoffset,
bool  touchme,
bool  downgrade,
int numave,
double &  percentage 
)

Definition at line 50 of file unit_customize.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpgradeSubUnitsWithFactory()

bool Unit::UpgradeSubUnitsWithFactory ( const Unit up,
int  subunitoffset,
bool  touchme,
bool  downgrade,
int numave,
double &  percentage,
Unit *(*)(std::string s, int faction createupgradesubunit 
)

set the turrets to the offset

Definition at line 3001 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VelocityReference() [1/3]

Unit * Unit::VelocityReference ( )

Definition at line 172 of file unit_generic.cpp.

Here is the caller graph for this function:

◆ VelocityReference() [2/3]

const Unit * Unit::VelocityReference ( ) const

Definition at line 176 of file unit_generic.cpp.

◆ VelocityReference() [3/3]

void Unit::VelocityReference ( Unit targ)

Definition at line 1965 of file unit_generic.cpp.

◆ VerticalThrust()

void Unit::VerticalThrust ( float  amt)

Definition at line 1364 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ViewComputerData()

const Computer& Unit::ViewComputerData ( ) const
inline

Definition at line 481 of file unit_generic.h.

Here is the caller graph for this function:

◆ viewSubUnits()

un_kiter Unit::viewSubUnits ( ) const

Definition at line 766 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VSDPercent()

float Energetic::VSDPercent ( )
staticinherited

Definition at line 380 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ warpCapData()

float Energetic::warpCapData ( ) const
inherited

Definition at line 219 of file energetic.cpp.

Here is the caller graph for this function:

◆ warpEnergyData()

float Energetic::warpEnergyData ( ) const
inherited

Definition at line 223 of file energetic.cpp.

Here is the caller graph for this function:

◆ WarpEnergyMultiplier()

float Energetic::WarpEnergyMultiplier ( const bool  player_ship)
inherited

Definition at line 368 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WarpMatrix()

Matrix Drawable::WarpMatrix ( const Matrix ctm) const
inherited

Holds temporary values for inter-function XML communication Saves deprecated restr info.

Definition at line 987 of file drawable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WCWarpIsFuelHack()

void Energetic::WCWarpIsFuelHack ( bool  transfer_warp_to_fuel)
inherited

Energetic::WCWarpIsFuelHack - in Wing Commander, warp and fuel are the same variable.

Therefore, we need to transfer from one to the other to maintain equality

Parameters
transfer_warp_to_fuel- true means fuel = warpenergy

Definition at line 125 of file energetic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteUnit()

void Unit::WriteUnit ( const char *  modificationname = "")

Definition at line 1146 of file unit_csv.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteUnitString()

string Unit::WriteUnitString ( )

Definition at line 1206 of file unit_csv.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ YawTorque()

void Unit::YawTorque ( float  amt)

Definition at line 1384 of file unit_generic.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ContinuousTerrain

friend class ContinuousTerrain
friend

Definition at line 395 of file unit_generic.h.

◆ Mount

friend class Mount
friend

Definition at line 346 of file unit_generic.h.

◆ PlanetaryOrbit

friend class PlanetaryOrbit
friend

Definition at line 394 of file unit_generic.h.

◆ UpgradingInfo

friend class UpgradingInfo
friend

Definition at line 399 of file unit_generic.h.

◆ VDU

friend class VDU
friend

Definition at line 397 of file unit_generic.h.

Member Data Documentation

◆ activeAnimation

unsigned int Drawable::activeAnimation
protectedinherited

Definition at line 58 of file drawable.h.

◆ activeMesh

unsigned int Drawable::activeMesh
protectedinherited

Definition at line 61 of file drawable.h.

◆ activeStarSystem

StarSystem* JumpCapable::activeStarSystem
inherited

Definition at line 38 of file jump_capable.h.

◆ afterburnenergy

float Energetic::afterburnenergy
protectedinherited

Definition at line 107 of file energetic.h.

◆ afterburntype

int Energetic::afterburntype
protectedinherited

Definition at line 108 of file energetic.h.

◆ air_res_coef

float Movable::air_res_coef {0.0F}
protectedinherited

Definition at line 142 of file movable.h.

◆ aistate

Order* Intelligent::aistate = nullptr
inherited

Definition at line 45 of file intelligent.h.

◆ AngularVelocity

Vector Movable::AngularVelocity
inherited

Definition at line 77 of file movable.h.

◆ animatedMesh

bool Drawable::animatedMesh
protectedinherited

Definition at line 57 of file drawable.h.

◆ armor

DamageableLayer* Damageable::armor
inherited

Definition at line 43 of file damageable.h.

◆ attack_preference

unsigned char Unit::attack_preference = ROLES::getRole("INERT")
private

Definition at line 360 of file unit_generic.h.

◆ attribute_map

const EnumMap Unit::attribute_map(attribute_names, 3)

◆ attribute_names

const EnumMap::Pair Unit::attribute_names[3]
Initial value:
= {
EnumMap::Pair("UNKNOWN", UNKNOWN),
EnumMap::Pair("file", XFILE),
EnumMap::Pair("Scale", SCALE)
}

Definition at line 240 of file objconv/MeshParse/mesh_xml.cpp.

◆ autopilotactive

bool Unit::autopilotactive = false

Definition at line 278 of file unit_generic.h.

◆ cargo

std::vector<Cargo> Carrier::cargo
inherited

Definition at line 38 of file carrier.h.

◆ CargoVolume

float Unit::CargoVolume = 0

Definition at line 170 of file unit_generic.h.

◆ cloakenergy

float Unit::cloakenergy = 0

How much energy cloaking takes per frame.

Definition at line 581 of file unit_generic.h.

◆ cloakglass

bool Unit::cloakglass = false

If this unit cloaks like glass or like fading.

Definition at line 585 of file unit_generic.h.

◆ cloaking

int Unit::cloaking = -1

Definition at line 589 of file unit_generic.h.

◆ cloakmin

int Unit::cloakmin = cloakglass ? 1 : 0

Definition at line 591 of file unit_generic.h.

◆ cloakrate

int Unit::cloakrate = 100

how fast this starship decloaks/close...if negative, decloaking

Definition at line 583 of file unit_generic.h.

◆ colTrees

struct collideTrees* Unit::colTrees = nullptr

Definition at line 839 of file unit_generic.h.

◆ CommFunctionality

float Unit::CommFunctionality

Definition at line 161 of file unit_generic.h.

◆ CommFunctionalityMax

float Unit::CommFunctionalityMax

Definition at line 162 of file unit_generic.h.

◆ components

std::vector<DamageableObject> DamageableObject::components
inherited

Definition at line 39 of file damageable_object.h.

◆ computer

Computer Unit::computer

Definition at line 470 of file unit_generic.h.

◆ constrained_charge_to_shields

float Energetic::constrained_charge_to_shields
inherited

Definition at line 101 of file energetic.h.

◆ corner_max

Vector Movable::corner_max
inherited

Definition at line 110 of file movable.h.

◆ corner_min

Vector Movable::corner_min
inherited

Definition at line 109 of file movable.h.

◆ csvRow

StringPool::Reference Unit::csvRow
protected

Definition at line 141 of file unit_generic.h.

◆ cumulative_transformation

Transformation Movable::cumulative_transformation
inherited

Definition at line 107 of file movable.h.

◆ cumulative_transformation_matrix

Matrix Movable::cumulative_transformation_matrix
inherited

Definition at line 105 of file movable.h.

◆ cumulative_velocity

Vector Movable::cumulative_velocity
inherited

Definition at line 67 of file movable.h.

◆ cur_sim_queue_slot

unsigned int Movable::cur_sim_queue_slot
inherited

Definition at line 97 of file movable.h.

◆ curr_physical_state

Transformation Movable::curr_physical_state
inherited

Definition at line 86 of file movable.h.

◆ current_hull

float* Damageable::current_hull
inherited

Definition at line 46 of file damageable.h.

◆ curtime

double Drawable::curtime
inherited

Definition at line 69 of file drawable.h.

◆ cutsqr

float Movable::cutsqr {0.0F}
protectedinherited

Definition at line 140 of file movable.h.

◆ damages

unsigned int Unit::damages = Damages::NO_DAMAGE

Definition at line 237 of file unit_generic.h.

◆ do_subunit_scheduling

bool Unit::do_subunit_scheduling = false

Definition at line 560 of file unit_generic.h.

◆ docked

unsigned char Movable::docked
inherited

Definition at line 102 of file movable.h.

◆ done

bool Drawable::done
protectedinherited

Definition at line 60 of file drawable.h.

◆ ecm

int Unit::ecm

Radar and related systems.

Definition at line 148 of file unit_generic.h.

◆ element_map

const EnumMap Unit::element_map(element_names, 3)

◆ element_names

const EnumMap::Pair Unit::element_names[3]
Initial value:
= {
EnumMap::Pair("UNKNOWN", UNKNOWN),
EnumMap::Pair("Unit", UNIT),
EnumMap::Pair("Meshfile", MESHFILE),
}

Definition at line 234 of file objconv/MeshParse/mesh_xml.cpp.

◆ energy

Resource<float> Energetic::energy
inherited

Definition at line 92 of file energetic.h.

◆ equipment_volume

float Unit::equipment_volume
Initial value:
=
0

mass just makes you turn worse

Definition at line 171 of file unit_generic.h.

◆ explosion

void(* DamageableObject::explosion) (DamageableObject object)
inherited

Definition at line 51 of file damageable_object.h.

◆ faction

int Unit::faction = 0

Definition at line 944 of file unit_generic.h.

◆ filename

StringPool::Reference Unit::filename

Definition at line 177 of file unit_generic.h.

◆ fireControlFunctionality

float Unit::fireControlFunctionality

Definition at line 157 of file unit_generic.h.

◆ fireControlFunctionalityMax

float Unit::fireControlFunctionalityMax

Definition at line 158 of file unit_generic.h.

◆ flightgroup

Flightgroup* Unit::flightgroup = nullptr

Definition at line 938 of file unit_generic.h.

◆ flightgroup_subnumber

int Unit::flightgroup_subnumber = 0

Definition at line 940 of file unit_generic.h.

◆ forcejump

bool Unit::forcejump = false

if the unit is a wormhole

Definition at line 595 of file unit_generic.h.

◆ fuel

float Energetic::fuel
protectedinherited

Definition at line 106 of file energetic.h.

◆ fullname

std::string Unit::fullname
protected

Definition at line 982 of file unit_generic.h.

◆ graphicOptions

class Movable::graphic_options Movable::graphicOptions
inherited

◆ gunrange

float Armed::gunrange
inherited

Definition at line 44 of file armed.h.

◆ gunspeed

float Armed::gunspeed
inherited

Definition at line 43 of file armed.h.

◆ halos

std::unique_ptr<HaloSystem> Drawable::halos
inherited

Definition at line 51 of file drawable.h.

◆ HeatSink

float Unit::HeatSink = 0

Definition at line 572 of file unit_generic.h.

◆ HiddenCargoVolume

float Unit::HiddenCargoVolume = 0

Definition at line 173 of file unit_generic.h.

◆ hull

DamageableLayer* Damageable::hull
inherited

Definition at line 42 of file damageable.h.

◆ inertialmode

bool Unit::inertialmode = false

Definition at line 277 of file unit_generic.h.

◆ infiniteLoop

bool Drawable::infiniteLoop
protectedinherited

Definition at line 63 of file drawable.h.

◆ invisible

unsigned char Unit::invisible = DEFAULTVIS

Definition at line 599 of file unit_generic.h.

◆ jump

struct Energetic::UnitJump Energetic::jump
inherited

◆ killed

bool Unit::killed

Definition at line 34 of file unit.h.

◆ last_processed_sqs

unsigned int Movable::last_processed_sqs
inherited

Definition at line 99 of file movable.h.

◆ lateral_air_res_coef

float Movable::lateral_air_res_coef {0.0F}
protectedinherited

Definition at line 143 of file movable.h.

◆ layers

std::vector<DamageableLayer> DamageableObject::layers
inherited

Definition at line 38 of file damageable_object.h.

◆ LifeSupportFunctionality

float Unit::LifeSupportFunctionality

Definition at line 163 of file unit_generic.h.

◆ LifeSupportFunctionalityMax

float Unit::LifeSupportFunctionalityMax

Definition at line 164 of file unit_generic.h.

◆ limits

Limits Movable::limits
inherited

Definition at line 65 of file movable.h.

◆ location

CollideMap::iterator Unit::location[2] = {nullptr, nullptr}

Definition at line 838 of file unit_generic.h.

◆ loopCount

unsigned int Drawable::loopCount
protectedinherited

Definition at line 64 of file drawable.h.

◆ Mass

float Movable::Mass
inherited

Definition at line 49 of file movable.h.

◆ max_hull

float* Damageable::max_hull
inherited

Definition at line 47 of file damageable.h.

◆ maxwarpenergy

float Energetic::maxwarpenergy
inherited

Definition at line 98 of file energetic.h.

◆ meshdata

std::vector<Mesh *> Drawable::meshdata
inherited

Definition at line 50 of file drawable.h.

◆ missilerange

float Armed::missilerange
inherited

Definition at line 45 of file armed.h.

◆ Momentofinertia

float Movable::Momentofinertia
protectedinherited

Definition at line 137 of file movable.h.

◆ mounts

std::vector<Mount> Armed::mounts
inherited

Definition at line 42 of file armed.h.

◆ name

Definition at line 176 of file unit_generic.h.

◆ nebula

Nebula* Unit::nebula = nullptr

Definition at line 389 of file unit_generic.h.

◆ NetForce

Vector Movable::NetForce
inherited

Definition at line 69 of file movable.h.

◆ NetLocalForce

Vector Movable::NetLocalForce
inherited

Definition at line 71 of file movable.h.

◆ NetLocalTorque

Vector Movable::NetLocalTorque
inherited

Definition at line 75 of file movable.h.

◆ NetTorque

Vector Movable::NetTorque
inherited

Definition at line 73 of file movable.h.

◆ next_repair_cargo

unsigned int Unit::next_repair_cargo

Definition at line 155 of file unit_generic.h.

◆ next_repair_time

float Unit::next_repair_time

Definition at line 154 of file unit_generic.h.

◆ nextactiveMesh

unsigned int Drawable::nextactiveMesh
protectedinherited

Definition at line 62 of file drawable.h.

◆ number_of_layers

int DamageableObject::number_of_layers
inherited

Definition at line 37 of file damageable_object.h.

◆ outcutsqr

float Movable::outcutsqr {0.0F}
protectedinherited

Definition at line 141 of file movable.h.

◆ owner

void* Unit::owner = nullptr

Definition at line 555 of file unit_generic.h.

◆ pilot

Pilot* Unit::pilot

Definition at line 474 of file unit_generic.h.

◆ pImage

UnitImages<void>* Unit::pImage = nullptr

Definition at line 568 of file unit_generic.h.

◆ predicted_priority

unsigned int Movable::predicted_priority
inherited

Definition at line 95 of file movable.h.

◆ prev_physical_state

Transformation Movable::prev_physical_state
inherited

Definition at line 84 of file movable.h.

◆ radial_size

float Movable::radial_size
inherited

Definition at line 112 of file movable.h.

◆ recharge

float Energetic::recharge
inherited

Definition at line 95 of file energetic.h.

◆ repair_droid

unsigned char Unit::repair_droid

Repair.

Definition at line 153 of file unit_generic.h.

◆ residual_debris

void*(* DamageableObject::residual_debris) (DamageableObject object)
inherited

Definition at line 52 of file damageable_object.h.

◆ resolveforces

bool Movable::resolveforces
inherited

Definition at line 90 of file movable.h.

◆ SavedAccel

Vector Movable::SavedAccel
protectedinherited

Definition at line 138 of file movable.h.

◆ SavedAngAccel

Vector Movable::SavedAngAccel
protectedinherited

Definition at line 139 of file movable.h.

◆ schedule_priority

enum Unit::schedulepriorityenum Unit::schedule_priority = scheduleDefault

◆ selected

bool Unit::selected = false

Definition at line 475 of file unit_generic.h.

◆ shield

DamageableLayer* Damageable::shield
inherited

Definition at line 44 of file damageable.h.

◆ shield_regeneration

float Damageable::shield_regeneration
inherited

Definition at line 53 of file damageable.h.

◆ shieldtight

float Unit::shieldtight = configuration()->physics_config.default_shield_tightness

Definition at line 576 of file unit_generic.h.

◆ sim_atom_multiplier

unsigned int Movable::sim_atom_multiplier
inherited

Definition at line 93 of file movable.h.

◆ SPECDriveFunctionality

float Unit::SPECDriveFunctionality

Definition at line 159 of file unit_generic.h.

◆ SPECDriveFunctionalityMax

float Unit::SPECDriveFunctionalityMax

Definition at line 160 of file unit_generic.h.

◆ specInterdiction

float Unit::specInterdiction = 0

Definition at line 570 of file unit_generic.h.

◆ SubUnits

UnitCollection Unit::SubUnits

Definition at line 263 of file unit_generic.h.

◆ sufficient_energy_to_recharge_shields

bool Energetic::sufficient_energy_to_recharge_shields
inherited

Definition at line 102 of file energetic.h.

◆ target_fgid

StringPool::Reference Unit::target_fgid[3]

Definition at line 775 of file unit_generic.h.

◆ temporary_upgrade_float_variable

float Unit::temporary_upgrade_float_variable

Definition at line 1030 of file unit_generic.h.

◆ timeperframe

double Drawable::timeperframe
protectedinherited

Definition at line 59 of file drawable.h.

◆ tractorability_flags

unsigned char Unit::tractorability_flags = tractorImmune
private

Definition at line 978 of file unit_generic.h.

◆ turretstatus

char Armed::turretstatus
inherited

Definition at line 46 of file armed.h.

◆ ucref

int Unit::ucref = 0

Definition at line 36 of file unit.h.

◆ uniqueUnitName

string Drawable::uniqueUnitName
protectedinherited

Definition at line 66 of file drawable.h.

◆ unit_role

unsigned char Unit::unit_role = ROLES::getRole("INERT")
private

Definition at line 361 of file unit_generic.h.

◆ unitCount

unsigned int Drawable::unitCount = 0
staticinherited

Definition at line 71 of file drawable.h.

◆ Units

std::map< string, Unit * > Drawable::Units
staticinherited

Definition at line 73 of file drawable.h.

◆ upgrade_hull

float Damageable::upgrade_hull
inherited

Definition at line 51 of file damageable.h.

◆ UpgradeVolume

float Unit::UpgradeVolume = 0

Volume.

Definition at line 169 of file unit_generic.h.

◆ vecAnimationNames

vector<string> Drawable::vecAnimationNames
protectedinherited

Definition at line 55 of file drawable.h.

◆ vecAnimations

vector<vector<Mesh *> *> Drawable::vecAnimations
protectedinherited

Definition at line 54 of file drawable.h.

◆ Velocity

Vector Movable::Velocity
inherited

Definition at line 78 of file movable.h.

◆ warpenergy

float Energetic::warpenergy
inherited

Definition at line 100 of file energetic.h.

◆ xml

XML* Unit::xml = nullptr

Definition at line 496 of file unit_generic.h.

◆ zapped

bool Unit::zapped

Definition at line 35 of file unit.h.


The documentation for this class was generated from the following files: